How to use functional class

Best Atoum code snippet using functional

AdminStep.php

Source:AdminStep.php Github

copy

Full Screen

1<?php2/**3 * Copyright © Magento, Inc. All rights reserved.4 * See COPYING.txt for license details.5 */6 7namespace Magento\FunctionalTestingFramework\Step\Backend;8require_once __DIR__ . '/../../Helper/AdminUrlList.php';9/**10 * Class AdminStep11 * @SuppressWarnings(PHPMD)12 * @codingStandardsIgnoreFile13 */14class AdminStep extends \Magento\FunctionalTestingFramework\AcceptanceTester15{16 public static $adminPageTitle = '.page-title';17 public function openNewTabGoToVerify($url)18 {19 $I = $this;20 $I->openNewTab();21 $I->amOnPage($url);22 $I->waitForPageLoad();23 $I->seeInCurrentUrl($url);24 }25 public function closeNewTab()26 {27 $I = $this;28 $I->closeTab();29 }30 // Key Admin Pages31 public function goToRandomAdminPage()32 {33 $I = $this;34 $admin_url_list = array(35 "/admin/admin/dashboard/",36 "/admin/sales/order/",37 "/admin/sales/invoice/",38 "/admin/sales/shipment/",39 "/admin/sales/creditmemo/",40 "/admin/paypal/billing_agreement/",41 "/admin/sales/transactions/",42 "/admin/catalog/product/",43 "/admin/catalog/category/",44 "/admin/customer/index/",45 "/admin/customer/online/",46 "/admin/catalog_rule/promo_catalog/",47 "/admin/sales_rule/promo_quote/",48 "/admin/admin/email_template/",49 "/admin/newsletter/template/",50 "/admin/newsletter/queue/",51 "/admin/newsletter/subscriber/",52 "/admin/admin/url_rewrite/index/",53 "/admin/search/term/index/",54 "/admin/search/synonyms/index/",55 "/admin/admin/sitemap/",56 "/admin/review/product/index/",57 "/admin/cms/page/",58 "/admin/cms/block/",59 "/admin/admin/widget_instance/",60 "/admin/theme/design_config/",61 "/admin/admin/system_design_theme/",62 "/admin/admin/system_design/",63 "/admin/reports/report_shopcart/product/",64 "/admin/search/term/report/",65 "/admin/reports/report_shopcart/abandoned/",66 "/admin/newsletter/problem/",67 "/admin/reports/report_review/customer/",68 "/admin/reports/report_review/product/",69 "/admin/reports/report_sales/sales/",70 "/admin/reports/report_sales/tax/",71 "/admin/reports/report_sales/invoiced/",72 "/admin/reports/report_sales/shipping/",73 "/admin/reports/report_sales/refunded/",74 "/admin/reports/report_sales/coupons/",75 "/admin/paypal/paypal_reports/",76 "/admin/braintree/report/",77 "/admin/reports/report_customer/totals/",78 "/admin/reports/report_customer/orders/",79 "/admin/reports/report_customer/accounts/",80 "/admin/reports/report_product/viewed/",81 "/admin/reports/report_sales/bestsellers/",82 "/admin/reports/report_product/lowstock/",83 "/admin/reports/report_product/sold/",84 "/admin/reports/report_product/downloads/",85 "/admin/reports/report_statistics/",86 "/admin/admin/system_store/",87 "/admin/admin/system_config/",88 "/admin/checkout/agreement/",89 "/admin/sales/order_status/",90 "/admin/tax/rule/",91 "/admin/tax/rate/",92 "/admin/admin/system_currency/",93 "/admin/admin/system_currencysymbol/",94 "/admin/catalog/product_attribute/",95 "/admin/catalog/product_set/",96 "/admin/review/rating/",97 "/admin/customer/group/",98 "/admin/admin/import/",99 "/admin/admin/export/",100 "/admin/tax/rate/importExport/",101 "/admin/admin/history/",102 "/admin/admin/integration/",103 "/admin/admin/cache/",104 "/admin/backup/index/",105 "/admin/indexer/indexer/list/",106 "/admin/admin/user/",107 "/admin/admin/locks/",108 "/admin/admin/user_role/",109 "/admin/admin/notification/",110 "/admin/admin/system_variable/",111 "/admin/admin/crypt_key/"112 );113 $random_admin_url = array_rand($admin_url_list, 1);114 115 $I->amOnPage($admin_url_list[$random_admin_url]);116 $I->waitForPageLoad();117 return $admin_url_list[$random_admin_url];118 }119 public function goToTheAdminLoginPage()120 {121 $I = $this;122 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminLoginPage);123 $I->waitForPageLoad();124 }125 public function goToTheAdminLogoutPage()126 {127 $I = $this;128 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminLogoutPage);129 }130 // Sales131 public function goToTheAdminOrdersGrid()132 {133 $I = $this;134 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminOrdersGrid);135 $I->waitForPageLoad();136 }137 public function goToTheAdminOrderForIdPage($orderId)138 {139 $I = $this;140 $I->amOnPage((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminOrderByIdPage . $orderId));141 $I->waitForPageLoad();142 }143 public function goToTheAdminAddOrderPage()144 {145 $I = $this;146 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddOrderPage);147 $I->waitForPageLoad();148 }149 public function goToTheAdminAddOrderForCustomerIdPage($customerId)150 {151 $I = $this;152 $I->amOnPage((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddOrderForCustomerIdPage . $customerId));153 $I->waitForPageLoad();154 }155 public function goToTheAdminInvoicesGrid()156 {157 $I = $this;158 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminInvoicesGrid);159 $I->waitForPageLoad();160 }161 public function goToTheAdminAddInvoiceForOrderIdPage($orderId)162 {163 $I = $this;164 $I->amOnPage((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddInvoiceForOrderIdPage . $orderId));165 $I->waitForPageLoad();166 }167 public function goToTheAdminShipmentsGrid()168 {169 $I = $this;170 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminShipmentsGrid);171 $I->waitForPageLoad();172 }173 public function goToTheAdminShipmentForIdPage($shipmentId)174 {175 $I = $this;176 $I->amOnPage((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminShipmentForIdPage . $shipmentId));177 $I->waitForPageLoad();178 }179 public function goToTheAdminCreditMemosGrid()180 {181 $I = $this;182 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCreditMemosGrid);183 $I->waitForPageLoad();184 }185 public function goToTheAdminCreditMemoForIdPage($creditMemoId)186 {187 $I = $this;188 $I->amOnPage((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCreditMemoForIdPage . $creditMemoId));189 $I->waitForPageLoad();190 }191 public function goToTheAdminBillingAgreementsGrid()192 {193 $I = $this;194 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminBillingAgreementsGrid);195 $I->waitForPageLoad();196 }197 public function goToTheAdminTransactionsGrid()198 {199 $I = $this;200 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminTransactionsGrid);201 $I->waitForPageLoad();202 }203 // Products204 public function goToTheAdminCatalogPage()205 {206 $I = $this;207 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCatalogGrid);208 $I->waitForPageLoad();209 }210 public function goToTheAdminProductForIdPage($productId)211 {212 $I = $this;213 $I->amOnPage((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminProductForIdPage . $productId));214 $I->waitForPageLoad();215 }216 public function goToTheAdminAddSimpleProductPage()217 {218 $I = $this;219 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddSimpleProductPage);220 $I->waitForPageLoad();221 }222 public function goToTheAdminAddConfigurableProductPage()223 {224 $I = $this;225 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddConfigurableProductPage);226 $I->waitForPageLoad();227 }228 public function goToTheAdminAddGroupedProductPage()229 {230 $I = $this;231 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddGroupedProductPage);232 $I->waitForPageLoad();233 }234 public function goToTheAdminAddVirtualProductPage()235 {236 $I = $this;237 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddVirtualProductPage);238 $I->waitForPageLoad();239 }240 public function goToTheAdminAddBundledProductPage()241 {242 $I = $this;243 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddBundleProductPage);244 $I->waitForPageLoad();245 }246 public function goToTheAdminAddDownloadableProductPage()247 {248 $I = $this;249 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddDownloadableProductPage);250 $I->waitForPageLoad();251 }252 public function goToTheAdminCategoriesPage()253 {254 $I = $this;255 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCategoriesPage);256 $I->waitForPageLoad();257 }258 public function goToTheAdminCategoryForIdPage($categoryId)259 {260 $I = $this;261 $I->amOnPage((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCategoryForIdPage . $categoryId));262 $I->waitForPageLoad();263 }264 public function goToTheAdminAddRootCategoryForStoreIdPage($storeId)265 {266 $I = $this;267 $I->amOnPage(('/admin/catalog/category/add/store/' . $storeId . '/parent/1'));268 $I->waitForPageLoad();269 }270 public function goToTheAdminAddSubCategoryForStoreIdPage($storeId)271 {272 $I = $this;273 $I->amOnPage(('/admin/catalog/category/add/store/' . $storeId . '/parent/2'));274 $I->waitForPageLoad();275 }276 // Customers277 public function goToTheAdminAllCustomersGrid()278 {279 $I = $this;280 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAllCustomersGrid);281 $I->waitForPageLoad();282 }283 public function goToTheAdminCustomersNowOnlineGrid()284 {285 $I = $this;286 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCustomersNowOnlineGrid);287 $I->waitForPageLoad();288 }289 public function goToTheAdminCustomerForIdPage($customerId)290 {291 $I = $this;292 $I->amOnPage((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCustomerForCustomerIdPage . $customerId));293 $I->waitForPageLoad();294 }295 public function goToTheAdminAddCustomerPage()296 {297 $I = $this;298 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddCustomerPage);299 $I->waitForPageLoad();300 }301 // Marketing302 public function goToTheAdminCatalogPriceRuleGrid()303 {304 $I = $this;305 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCatalogPriceRuleGrid);306 $I->waitForPageLoad();307 }308 public function goToTheAdminCatalogPriceRuleForIdPage($catalogPriceRuleId)309 {310 $I = $this;311 $I->amOnPage((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCatalogPriceRuleForIdPage . $catalogPriceRuleId));312 $I->waitForPageLoad();313 }314 public function goToTheAdminAddCatalogPriceRulePage()315 {316 $I = $this;317 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddCatalogPriceRulePage);318 $I->waitForPageLoad();319 }320 public function goToTheAdminCartPriceRulesGrid()321 {322 $I = $this;323 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCartPriceRulesGrid);324 $I->waitForPageLoad();325 }326 public function goToTheAdminCartPriceRuleForIdPage($cartPriceRuleId)327 {328 $I = $this;329 $I->amOnPage((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCartPriceRuleForIdPage . $cartPriceRuleId));330 $I->waitForPageLoad();331 }332 public function goToTheAdminAddCartPriceRulePage()333 {334 $I = $this;335 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddCartPriceRulePage);336 $I->waitForPageLoad();337 }338 public function goToTheAdminEmailTemplatesGrid()339 {340 $I = $this;341 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminEmailTemplatesGrid);342 $I->waitForPageLoad();343 }344 public function goToTheAdminEmailTemplateForIdPage($emailTemplateId)345 {346 $I = $this;347 $I->amOnPage((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminEmailTemplateForIdPage . $emailTemplateId));348 $I->waitForPageLoad();349 }350 public function goToTheAdminAddEmailTemplatePage()351 {352 $I = $this;353 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddEmailTemplatePage);354 $I->waitForPageLoad();355 }356 public function goToTheAdminNewsletterTemplateGrid()357 {358 $I = $this;359 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminNewsletterTemplateGrid);360 $I->waitForPageLoad();361 }362 public function goToTheAdminNewsletterTemplateByIdPage($newsletterTemplateId)363 {364 $I = $this;365 $I->amOnPage((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminNewsletterTemplateForIdPage . $newsletterTemplateId));366 $I->waitForPageLoad();367 }368 public function goToTheAdminAddNewsletterTemplatePage()369 {370 $I = $this;371 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddNewsletterTemplatePage);372 $I->waitForPageLoad();373 }374 public function goToTheAdminNewsletterQueueGrid()375 {376 $I = $this;377 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminNewsletterQueueGrid);378 $I->waitForPageLoad();379 }380 public function goToTheAdminNewsletterSubscribersGrid()381 {382 $I = $this;383 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminNewsletterSubscribersGrid);384 $I->waitForPageLoad();385 }386 public function goToTheAdminURLRewritesGrid()387 {388 $I = $this;389 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminURLRewritesGrid);390 $I->waitForPageLoad();391 }392 public function goToTheAdminURLRewriteForId($urlRewriteId)393 {394 $I = $this;395 $I->amOnPage((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminURLRewriteForIdPage . $urlRewriteId));396 $I->waitForPageLoad();397 }398 public function goToTheAdminAddURLRewritePage()399 {400 $I = $this;401 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddURLRewritePage);402 $I->waitForPageLoad();403 }404 public function goToTheAdminSearchTermsGrid()405 {406 $I = $this;407 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminSearchTermsGrid);408 $I->waitForPageLoad();409 }410 public function goToTheAdminSearchTermForIdPage($searchTermId)411 {412 $I = $this;413 $I->amOnPage((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminSearchTermForIdPage . $searchTermId));414 $I->waitForPageLoad();415 }416 public function goToTheAdminAddSearchTermPage()417 {418 $I = $this;419 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddSearchTermPage);420 $I->waitForPageLoad();421 }422 public function goToTheAdminSearchSynonymsGrid()423 {424 $I = $this;425 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminSearchSynonymsGrid);426 $I->waitForPageLoad();427 }428 public function goToTheAdminSearchSynonymGroupByIdPage($searchSynonymId)429 {430 $I = $this;431 $I->amOnPage((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminSearchSynonymGroupForIdPage . $searchSynonymId));432 $I->waitForPageLoad();433 }434 public function goToTheAdminAddSearchSynonymGroupPage()435 {436 $I = $this;437 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddSearchSynonymGroupPage);438 $I->waitForPageLoad();439 }440 public function goToTheAdminSiteMapGrid()441 {442 $I = $this;443 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminSiteMapGrid);444 $I->waitForPageLoad();445 }446 public function goToTheAdminSiteMapForIdPage($siteMapId)447 {448 $I = $this;449 $I->amOnPage((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminSiteMapForIdPage . $siteMapId));450 $I->waitForPageLoad();451 }452 public function goToTheAdminAddSiteMapPage()453 {454 $I = $this;455 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddSiteMapPage);456 $I->waitForPageLoad();457 }458 public function goToTheAdminReviewsGrid()459 {460 $I = $this;461 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminReviewsGrid);462 $I->waitForPageLoad();463 }464 public function goToTheAdminReviewForIdPage($reviewId)465 {466 $I = $this;467 $I->amOnPage((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminReviewByIdPage . $reviewId));468 $I->waitForPageLoad();469 }470 public function goToTheAdminAddReviewPage()471 {472 $I = $this;473 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddReviewPage);474 $I->waitForPageLoad();475 }476 // Content477 public function goToTheAdminPagesGrid()478 {479 $I = $this;480 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminPagesGrid);481 $I->waitForPageLoad();482 }483 public function goToTheAdminPageForIdPage($pageId)484 {485 $I = $this;486 $I->amOnPage((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminPageForIdPage . $pageId));487 $I->waitForPageLoad();488 }489 public function goToTheAdminAddPagePage()490 {491 $I = $this;492 $I->amOnPage((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddPagePage));493 $I->waitForPageLoad();494 }495 public function goToTheAdminBlocksGrid()496 {497 $I = $this;498 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminBlocksGrid);499 $I->waitForPageLoad();500 }501 public function goToTheAdminBlockForIdPage($blockId)502 {503 $I = $this;504 $I->amOnPage((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminBlockForIdPage . $blockId));505 $I->waitForPageLoad();506 }507 public function goToTheAdminAddBlockPage()508 {509 $I = $this;510 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddBlockPage);511 $I->waitForPageLoad();512 }513 public function goToTheAdminWidgetsGrid()514 {515 $I = $this;516 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminWidgetsGrid);517 $I->waitForPageLoad();518 }519 public function goToTheAdminAddWidgetPage()520 {521 $I = $this;522 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddWidgetPage);523 $I->waitForPageLoad();524 }525 public function goToTheAdminDesignConfigurationGrid()526 {527 $I = $this;528 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminDesignConfigurationGrid);529 $I->waitForPageLoad();530 }531 public function goToTheAdminThemesGrid()532 {533 $I = $this;534 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminThemesGrid);535 $I->waitForPageLoad();536 }537 public function goToTheAdminThemeByIdPage($themeId)538 {539 $I = $this;540 $I->amOnPage((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminThemeByIdPage . $themeId));541 $I->waitForPageLoad();542 }543 public function goToTheAdminStoreContentScheduleGrid()544 {545 $I = $this;546 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminStoreContentScheduleGrid);547 $I->waitForPageLoad();548 }549 public function goToTheAdminStoreContentScheduleForIdPage($storeContentScheduleId)550 {551 $I = $this;552 $I->amOnPage((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminStoreContentScheduleForIdPage . $storeContentScheduleId));553 $I->waitForPageLoad();554 }555 public function goToTheAdminAddStoreDesignChangePage()556 {557 $I = $this;558 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddStoreDesignChangePage);559 $I->waitForPageLoad();560 }561 // Reports562 public function goToTheAdminProductsInCartGrid()563 {564 $I = $this;565 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminProductsInCartGrid);566 $I->waitForPageLoad();567 }568 public function goToTheAdminSearchTermsReportGrid()569 {570 $I = $this;571 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminSearchTermsReportGrid);572 $I->waitForPageLoad();573 }574 public function goToTheAdminAbandonedCartsGrid()575 {576 $I = $this;577 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAbandonedCartsGrid);578 $I->waitForPageLoad();579 }580 public function goToTheAdminNewsletterProblemsReportGrid()581 {582 $I = $this;583 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminNewsletterProblemsReportGrid);584 $I->waitForPageLoad();585 }586 public function goToTheAdminCustomerReviewsReportGrid()587 {588 $I = $this;589 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCustomerReviewsReportGrid);590 $I->waitForPageLoad();591 }592 public function goToTheAdminProductReviewsReportGrid()593 {594 $I = $this;595 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminProductReviewsReportGrid);596 $I->waitForPageLoad();597 }598 public function goToTheAdminProductReviewsForProductIdPage($productId)599 {600 $I = $this;601 $I->amOnPage((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminProductReviewsForProductIdPage . $productId));602 $I->waitForPageLoad();603 }604 public function goToTheAdminProductReviewIdForProductIdPage($productReviewId, $productId)605 {606 $I = $this;607 $I->amOnPage(('/admin/review/product/edit/id/' . $productReviewId . '/productId/' . $productId));608 $I->waitForPageLoad();609 }610 public function goToTheAdminOrdersReportGrid()611 {612 $I = $this;613 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminOrdersReportGrid);614 $I->waitForPageLoad();615 }616 public function goToTheAdminTaxReportGrid()617 {618 $I = $this;619 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminTaxReportGrid);620 $I->waitForPageLoad();621 }622 public function goToTheAdminInvoiceReportGrid()623 {624 $I = $this;625 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminInvoiceReportGrid);626 $I->waitForPageLoad();627 }628 public function goToTheAdminShippingReportGrid()629 {630 $I = $this;631 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminShippingReportGrid);632 $I->waitForPageLoad();633 }634 public function goToTheAdminRefundsReportGrid()635 {636 $I = $this;637 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminRefundsReportGrid);638 $I->waitForPageLoad();639 }640 public function goToTheAdminCouponsReportGrid()641 {642 $I = $this;643 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCouponsReportGrid);644 $I->waitForPageLoad();645 }646 public function goToTheAdminPayPalSettlementReportsGrid()647 {648 $I = $this;649 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminPayPalSettlementReportsGrid);650 $I->waitForPageLoad();651 }652 public function goToTheAdminBraintreeSettlementReportGrid()653 {654 $I = $this;655 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminBraintreeSettlementReportGrid);656 $I->waitForPageLoad();657 }658 public function goToTheAdminOrderTotalReportGrid()659 {660 $I = $this;661 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminOrderTotalReportGrid);662 $I->waitForPageLoad();663 }664 public function goToTheAdminOrderCountReportGrid()665 {666 $I = $this;667 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminOrderCountReportGrid);668 $I->waitForPageLoad();669 }670 public function goToTheAdminNewAccountsReportGrid()671 {672 $I = $this;673 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminNewAccountsReportGrid);674 $I->waitForPageLoad();675 }676 public function goToTheAdminProductViewsReportGrid()677 {678 $I = $this;679 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminProductViewsReportGrid);680 $I->waitForPageLoad();681 }682 public function goToTheAdminBestsellersReportGrid()683 {684 $I = $this;685 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminBestsellersReportGrid);686 $I->waitForPageLoad();687 }688 public function goToTheAdminLowStockReportGrid()689 {690 $I = $this;691 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminLowStockReportGrid);692 $I->waitForPageLoad();693 }694 public function goToTheAdminOrderedProductsReportGrid()695 {696 $I = $this;697 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminOrderedProductsReportGrid);698 $I->waitForPageLoad();699 }700 public function goToTheAdminDownloadsReportGrid()701 {702 $I = $this;703 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminDownloadsReportGrid);704 $I->waitForPageLoad();705 }706 public function goToTheAdminRefreshStatisticsGrid()707 {708 $I = $this;709 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminRefreshStatisticsGrid);710 $I->waitForPageLoad();711 }712 // Stores713 public function goToTheAdminAllStoresGrid()714 {715 $I = $this;716 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAllStoresGrid);717 $I->waitForPageLoad();718 }719 public function goToTheAdminCreateStoreViewPage()720 {721 $I = $this;722 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCreateStoreViewPage);723 $I->waitForPageLoad();724 }725 public function goToTheAdminCreateStorePage()726 {727 $I = $this;728 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCreateStorePage);729 $I->waitForPageLoad();730 }731 public function goToTheAdminCreateWebsitePage()732 {733 $I = $this;734 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCreateWebsitePage);735 $I->waitForPageLoad();736 }737 public function goToTheAdminWebsiteForIdPage($websiteId)738 {739 $I = $this;740 $I->amOnPage((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminWebsiteByIdPage . $websiteId));741 $I->waitForPageLoad();742 }743 public function goToTheAdminStoreViewForIdPage($storeViewId)744 {745 $I = $this;746 $I->amOnPage((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminStoreViewByIdPage . $storeViewId));747 $I->waitForPageLoad();748 }749 public function goToTheAdminStoreForIdPage($storeId)750 {751 $I = $this;752 $I->amOnPage((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminStoreByIdPage . $storeId));753 $I->waitForPageLoad();754 }755 public function goToTheAdminConfigurationGrid()756 {757 $I = $this;758 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminConfigurationGrid);759 $I->waitForPageLoad();760 }761 public function goToTheAdminTermsAndConditionsGrid()762 {763 $I = $this;764 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminTermsAndConditionsGrid);765 $I->waitForPageLoad();766 }767 public function goToTheAdminTermsAndConditionForIdPage($termsAndConditionsId)768 {769 $I = $this;770 $I->amOnPage((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminTermsAndConditionByIdPage . $termsAndConditionsId));771 $I->waitForPageLoad();772 }773 public function goToTheAdminAddNewTermsAndConditionsPage()774 {775 $I = $this;776 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddNewTermsAndConditionPage);777 $I->waitForPageLoad();778 }779 public function goToTheAdminOrderStatusGrid()780 {781 $I = $this;782 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminOrderStatusGrid);783 $I->waitForPageLoad();784 }785 public function goToTheAdminAddOrderStatusPage()786 {787 $I = $this;788 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddOrderStatusPage);789 $I->waitForPageLoad();790 }791 public function goToTheAdminTaxRulesGrid()792 {793 $I = $this;794 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminTaxRulesGrid);795 $I->waitForPageLoad();796 }797 public function goToTheAdminTaxRuleForIdPage($taxRuleId)798 {799 $I = $this;800 $I->amOnPage((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminTaxRuleByIdPage . $taxRuleId));801 $I->waitForPageLoad();802 }803 public function goToTheAdminAddTaxRulePage()804 {805 $I = $this;806 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddTaxRulePage);807 $I->waitForPageLoad();808 }809 public function goToTheAdminTaxZonesAndRatesGrid()810 {811 $I = $this;812 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminTaxZonesAndRatesGrid);813 $I->waitForPageLoad();814 }815 public function goToTheAdminTaxZoneAndRateForIdPage($taxZoneAndRateId)816 {817 $I = $this;818 $I->amOnPage((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminTaxZoneAndRateByIdPage . $taxZoneAndRateId));819 $I->waitForPageLoad();820 }821 public function goToTheAdminAddTaxZoneAndRatePage()822 {823 $I = $this;824 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddTaxZoneAndRatePage);825 $I->waitForPageLoad();826 }827 public function goToTheAdminCurrencyRatesPage()828 {829 $I = $this;830 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCurrencyRatesPage);831 $I->waitForPageLoad();832 }833 public function goToTheAdminCurrencySymbolsPage()834 {835 $I = $this;836 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCurrencySymbolsPage);837 $I->waitForPageLoad();838 }839 public function goToTheAdminProductAttributesGrid()840 {841 $I = $this;842 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminProductAttributesGrid);843 $I->waitForPageLoad();844 }845 public function goToTheAdminProductAttributeForIdPage($productAttributeId)846 {847 $I = $this;848 $I->amOnPage((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminProductAttributeForIdPage . $productAttributeId));849 $I->waitForPageLoad();850 }851 public function goToTheAdminAddProductAttributePage()852 {853 $I = $this;854 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddProductAttributePage);855 $I->waitForPageLoad();856 }857 public function goToTheAdminAttributeSetGrid()858 {859 $I = $this;860 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAttributeSetsGrid);861 $I->waitForPageLoad();862 }863 public function goToTheAdminAttributeSetByIdPage($attributeSetId)864 {865 $I = $this;866 $I->amOnPage((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAttributeSetByIdPage . $attributeSetId));867 $I->waitForPageLoad();868 }869 public function goToTheAdminAddAttributeSetPage()870 {871 $I = $this;872 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddAttributeSetPage);873 $I->waitForPageLoad();874 }875 public function goToTheAdminRatingGrid()876 {877 $I = $this;878 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminRatingsGrid);879 $I->waitForPageLoad();880 }881 public function goToTheAdminRatingForIdPage($ratingId)882 {883 $I = $this;884 $I->amOnPage((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminRatingForIdPage . $ratingId));885 $I->waitForPageLoad();886 }887 public function goToTheAdminAddRatingPage()888 {889 $I = $this;890 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddRatingPage);891 $I->waitForPageLoad();892 }893 public function goToTheAdminCustomerGroupsGrid()894 {895 $I = $this;896 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCustomerGroupsGrid);897 $I->waitForPageLoad();898 }899 public function goToTheAdminCustomerGroupForIdPage($customerGroupId)900 {901 $I = $this;902 $I->amOnPage((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCustomerGroupByIdPage . $customerGroupId));903 $I->waitForPageLoad();904 }905 public function goToTheAdminAddCustomerGroupPage()906 {907 $I = $this;908 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddCustomerGroupPage);909 $I->waitForPageLoad();910 }911 // System912 public function goToTheAdminImportPage()913 {914 $I = $this;915 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminImportPage);916 $I->waitForPageLoad();917 }918 public function goToTheAdminExportPage()919 {920 $I = $this;921 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminExportPage);922 $I->waitForPageLoad();923 }924 public function goToTheAdminImportAndExportTaxRatesPage()925 {926 $I = $this;927 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminImportAndExportTaxRatesPage);928 $I->waitForPageLoad();929 }930 public function goToTheAdminImportHistoryGrid()931 {932 $I = $this;933 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminImportHistoryGrid);934 $I->waitForPageLoad();935 }936 public function goToTheAdminIntegrationsGrid()937 {938 $I = $this;939 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminIntegrationsGrid);940 $I->waitForPageLoad();941 }942 public function goToTheAdminIntegrationForIdPage($integrationId)943 {944 $I = $this;945 $I->amOnPage((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminIntegrationByIdPage . $integrationId));946 $I->waitForPageLoad();947 }948 public function goToTheAdminAddIntegrationPage()949 {950 $I = $this;951 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddIntegrationPage);952 $I->waitForPageLoad();953 }954 public function goToTheAdminCacheManagementGrid()955 {956 $I = $this;957 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCacheManagementGrid);958 $I->waitForPageLoad();959 }960 public function goToTheAdminBackupsGrid()961 {962 $I = $this;963 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminBackupsGrid);964 $I->waitForPageLoad();965 }966 public function goToTheAdminIndexManagementGrid()967 {968 $I = $this;969 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminIndexManagementGrid);970 $I->waitForPageLoad();971 }972 public function goToTheAdminWebSetupWizardPage()973 {974 $I = $this;975 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminWebSetupWizardPage);976 $I->waitForPageLoad();977 }978 public function goToTheAdminAllUsersGrid()979 {980 $I = $this;981 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAllUsersGrid);982 $I->waitForPageLoad();983 }984 public function goToTheAdminUserForIdPage($userId)985 {986 $I = $this;987 $I->amOnPage((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminUserByIdPage . $userId));988 $I->waitForPageLoad();989 }990 public function goToTheAdminAddUserPage()991 {992 $I = $this;993 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddNewUserPage);994 $I->waitForPageLoad();995 }996 public function goToTheAdminLockedUsersGrid()997 {998 $I = $this;999 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminLockedUsersGrid);1000 $I->waitForPageLoad();1001 }1002 public function goToTheAdminUserRolesGrid()1003 {1004 $I = $this;1005 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminUserRolesGrid);1006 $I->waitForPageLoad();1007 }1008 public function goToTheAdminUserRoleForIdPage($userRoleId)1009 {1010 $I = $this;1011 $I->amOnPage((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminUserRoleByIdPage . $userRoleId));1012 $I->waitForPageLoad();1013 }1014 public function goToTheAdminAddUserRolePage()1015 {1016 $I = $this;1017 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddUserRolePage);1018 $I->waitForPageLoad();1019 }1020 public function goToTheAdminNotificationsGrid()1021 {1022 $I = $this;1023 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminNotificationsGrid);1024 $I->waitForPageLoad();1025 }1026 public function goToTheAdminCustomVariablesGrid()1027 {1028 $I = $this;1029 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCustomVariablesGrid);1030 $I->waitForPageLoad();1031 }1032 public function goToTheAdminCustomVariableForId($customVariableId)1033 {1034 $I = $this;1035 $I->amOnPage((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCustomVariableByIdPage . $customVariableId));1036 $I->waitForPageLoad();1037 }1038 public function goToTheAdminAddCustomVariablePage()1039 {1040 $I = $this;1041 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddCustomVariablePage);1042 $I->waitForPageLoad();1043 }1044 public function goToTheAdminEncryptionKeyPage()1045 {1046 $I = $this;1047 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminEncryptionKeyPage);1048 $I->waitForPageLoad();1049 }1050 public function goToTheAdminFindPartnersAndExtensionsPage()1051 {1052 $I = $this;1053 $I->amOnPage(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminFindPartnersAndExtensions);1054 $I->waitForPageLoad();1055 }1056 // Key Admin Pages1057 public function shouldBeOnTheAdminLoginPage()1058 {1059 $I = $this;1060 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminLoginPage);1061 }1062 public function shouldBeOnTheAdminDashboardPage()1063 {1064 $I = $this;1065 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminDashboardPage);1066 $I->see('Dashboard', self::$adminPageTitle);1067 }1068 public function shouldBeOnTheAdminForgotYourPasswordPage()1069 {1070 $I = $this;1071 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminForgotYourPasswordPage);1072 }1073 // Sales1074 public function shouldBeOnTheAdminOrdersGrid()1075 {1076 $I = $this;1077 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminOrdersGrid);1078 $I->see('Orders', self::$adminPageTitle);1079 }1080 public function shouldBeOnTheAdminOrderForIdPage($orderId)1081 {1082 $I = $this;1083 $I->seeInCurrentUrl((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminOrderByIdPage . $orderId));1084 $I->see($orderId, self::$adminPageTitle);1085 }1086 public function shouldBeOnTheAdminAddOrderPage()1087 {1088 $I = $this;1089 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddOrderPage);1090 $I->see('Create New Order', self::$adminPageTitle);1091 }1092 public function shouldBeOnTheAdminAddOrderForCustomerIdPage($customerId)1093 {1094 $I = $this;1095 $I->seeInCurrentUrl((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddOrderForCustomerIdPage . $customerId));1096 $I->see('Create New Order', self::$adminPageTitle);1097 }1098 public function shouldBeOnTheAdminInvoicesGrid()1099 {1100 $I = $this;1101 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminInvoicesGrid);1102 $I->see('Invoices', self::$adminPageTitle);1103 }1104 public function shouldBeOnTheAdminAddInvoiceForOrderIdPage($orderId)1105 {1106 $I = $this;1107 $I->seeInCurrentUrl((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddInvoiceForOrderIdPage . $orderId));1108 $I->see('New Invoice', self::$adminPageTitle);1109 }1110 public function shouldBeOnTheAdminShipmentsGrid()1111 {1112 $I = $this;1113 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminShipmentsGrid);1114 $I->see('Shipments', self::$adminPageTitle);1115 }1116 public function shouldBeOnTheAdminShipmentForIdPage($shipmentId)1117 {1118 $I = $this;1119 $I->seeInCurrentUrl((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminShipmentForIdPage . $shipmentId));1120 $I->see('New Shipment');1121 }1122 public function shouldBeOnTheAdminCreditMemosGrid()1123 {1124 $I = $this;1125 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCreditMemosGrid);1126 $I->see('Credit Memos', self::$adminPageTitle);1127 }1128 public function shouldBeOnTheAdminCreditMemoForIdPage($creditMemoId)1129 {1130 $I = $this;1131 $I->seeInCurrentUrl((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCreditMemoForIdPage . $creditMemoId));1132 $I->see('View Memo', self::$adminPageTitle);1133 }1134 public function shouldBeOnTheAdminBillingAgreementsGrid()1135 {1136 $I = $this;1137 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminBillingAgreementsGrid);1138 $I->see('Billing Agreements', self::$adminPageTitle);1139 }1140 public function shouldBeOnTheAdminTransactionsGrid()1141 {1142 $I = $this;1143 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminTransactionsGrid);1144 $I->see('Transactions', self::$adminPageTitle);1145 }1146 // Products1147 public function shouldBeOnTheAdminCatalogGrid()1148 {1149 $I = $this;1150 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCatalogGrid);1151 $I->see('Catalog', self::$adminPageTitle);1152 }1153 public function shouldBeOnTheAdminProductForIdPage($productId, $productName)1154 {1155 $I = $this;1156 $I->seeInCurrentUrl((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminProductForIdPage . $productId));1157 $I->see($productName, self::$adminPageTitle);1158 }1159 public function shouldBeOnTheAdminAddSimpleProductPage()1160 {1161 $I = $this;1162 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddSimpleProductPage);1163 $I->see('New Product', self::$adminPageTitle);1164 }1165 1166 public function shouldBeOnTheAdminAddConfigurableProductPage()1167 {1168 $I = $this;1169 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddConfigurableProductPage);1170 $I->see('New Product', self::$adminPageTitle);1171 }1172 public function shouldBeOnTheAdminAddGroupedProductPage()1173 {1174 $I = $this;1175 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddGroupedProductPage);1176 $I->see('New Product', self::$adminPageTitle);1177 }1178 public function shouldBeOnTheAdminAddVirtualProductPage()1179 {1180 $I = $this;1181 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddVirtualProductPage);1182 $I->see('New Product', self::$adminPageTitle);1183 }1184 public function shouldBeOnTheAdminAddBundledProductPage()1185 {1186 $I = $this;1187 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddBundleProductPage);1188 $I->see('New Product', self::$adminPageTitle);1189 }1190 public function shouldBeOnTheAdminAddDownloadableProductPage()1191 {1192 $I = $this;1193 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddDownloadableProductPage);1194 $I->see('New Product', self::$adminPageTitle);1195 }1196 public function shouldBeOnTheAdminCategoriesPage()1197 {1198 $I = $this;1199 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCategoriesPage);1200 $I->see('Default Category', self::$adminPageTitle);1201 }1202 public function shouldBeOnTheAdminCategoryForIdPage($categoryId, $categoryName)1203 {1204 $I = $this;1205 $I->seeInCurrentUrl((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCategoryForIdPage . $categoryId));1206 $I->see($categoryName, self::$adminPageTitle);1207 }1208 public function shouldBeOnTheAdminAddRootCategoryForStoreIdPage($storeId)1209 {1210 $I = $this;1211 $I->seeInCurrentUrl(('/admin/catalog/category/add/store/' . $storeId . '/parent/1'));1212 $I->see('New Category', self::$adminPageTitle);1213 }1214 public function shouldBeOnTheAdminAddSubCategoryForStoreIdPage($storeId)1215 {1216 $I = $this;1217 $I->seeInCurrentUrl(('/admin/catalog/category/add/store/' . $storeId . '/parent/2'));1218 $I->see('New Category', self::$adminPageTitle);1219 }1220 // Customers1221 public function shouldBeOnTheAdminAllCustomersGrid()1222 {1223 $I = $this;1224 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAllCustomersGrid);1225 $I->see('Customers', self::$adminPageTitle);1226 }1227 public function shouldBeOnTheAdminCustomersNowOnlineGrid()1228 {1229 $I = $this;1230 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCustomersNowOnlineGrid);1231 $I->see('Customers Now Online', self::$adminPageTitle);1232 }1233 public function shouldBeOnTheAdminCustomerForIdPage($customerId, $customerName)1234 {1235 $I = $this;1236 $I->seeInCurrentUrl((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCustomerForCustomerIdPage . $customerId));1237 $I->see($customerName, self::$adminPageTitle);1238 }1239 public function shouldBeOnTheAdminAddCustomerPage()1240 {1241 $I = $this;1242 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddCustomerPage);1243 $I->see('New Customer', self::$adminPageTitle);1244 }1245 // Marketing1246 public function shouldBeOnTheAdminCatalogPriceRuleGrid()1247 {1248 $I = $this;1249 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCatalogPriceRuleGrid);1250 $I->see('Catalog Price Rule', self::$adminPageTitle);1251 }1252 public function shouldBeOnTheAdminCatalogPriceRuleForIdPage($catalogPriceRuleId, $catalogPriceRuleName)1253 {1254 $I = $this;1255 $I->seeInCurrentUrl((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCatalogPriceRuleForIdPage . $catalogPriceRuleId));1256 $I->see($catalogPriceRuleName, self::$adminPageTitle);1257 }1258 public function shouldBeOnTheAdminAddCatalogPriceRulePage()1259 {1260 $I = $this;1261 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddCatalogPriceRulePage);1262 $I->see('New Catalog Price Rule', self::$adminPageTitle);1263 }1264 public function shouldBeOnTheAdminCartPriceRulesGrid()1265 {1266 $I = $this;1267 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCartPriceRulesGrid);1268 $I->see('Cart Price Rules', self::$adminPageTitle);1269 }1270 public function shouldBeOnTheAdminCartPriceRuleForIdPage($cartPriceRuleId, $cartPriceRuleName)1271 {1272 $I = $this;1273 $I->seeInCurrentUrl((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCartPriceRuleForIdPage . $cartPriceRuleId));1274 $I->see($cartPriceRuleName, self::$adminPageTitle);1275 }1276 public function shouldBeOnTheAdminAddCartPriceRulePage()1277 {1278 $I = $this;1279 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddCartPriceRulePage);1280 $I->see('New Cart Price Rule', self::$adminPageTitle);1281 }1282 public function shouldBeOnTheAdminEmailTemplatesGrid()1283 {1284 $I = $this;1285 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminEmailTemplatesGrid);1286 $I->see('Email Templates', self::$adminPageTitle);1287 }1288 public function shouldBeOnTheAdminEmailTemplateForIdPage($emailTemplateId, $templateName)1289 {1290 $I = $this;1291 $I->seeInCurrentUrl((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminEmailTemplateForIdPage . $emailTemplateId));1292 $I->see($templateName, self::$adminPageTitle);1293 }1294 public function shouldBeOnTheAdminAddEmailTemplatePage()1295 {1296 $I = $this;1297 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddEmailTemplatePage);1298 $I->see('New Template', self::$adminPageTitle);1299 }1300 public function shouldBeOnTheAdminNewsletterTemplateGrid()1301 {1302 $I = $this;1303 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminNewsletterTemplateGrid);1304 $I->see('Newsletter Templates', self::$adminPageTitle);1305 }1306 public function shouldBeOnTheAdminNewsletterTemplateByIdPage($newsletterTemplateId, $templateName)1307 {1308 $I = $this;1309 $I->seeInCurrentUrl((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminNewsletterTemplateForIdPage . $newsletterTemplateId));1310 $I->see($templateName, self::$adminPageTitle);1311 }1312 public function shouldBeOnTheAdminAddNewsletterTemplatePage()1313 {1314 $I = $this;1315 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddNewsletterTemplatePage);1316 $I->see('New Template', self::$adminPageTitle);1317 }1318 public function shouldBeOnTheAdminNewsletterQueueGrid()1319 {1320 $I = $this;1321 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminNewsletterQueueGrid);1322 $I->see('Newsletter Queue', self::$adminPageTitle);1323 }1324 public function shouldBeOnTheAdminNewsletterSubscribersGrid()1325 {1326 $I = $this;1327 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminNewsletterSubscribersGrid);1328 $I->see('Newsletter Subscribers', self::$adminPageTitle);1329 }1330 public function shouldBeOnTheAdminURLRewritesGrid()1331 {1332 $I = $this;1333 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminURLRewritesGrid);1334 $I->see('URL Rewrites', self::$adminPageTitle);1335 }1336 public function shouldBeOnTheAdminURLRewriteForId($urlRewriteId)1337 {1338 $I = $this;1339 $I->seeInCurrentUrl((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminURLRewriteForIdPage . $urlRewriteId));1340 $I->see('Edit URL Rewrite for a', self::$adminPageTitle);1341 }1342 public function shouldBeOnTheAdminAddURLRewritePage()1343 {1344 $I = $this;1345 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddURLRewritePage);1346 $I->see('Add New URL Rewrite', self::$adminPageTitle);1347 }1348 public function shouldBeOnTheAdminSearchTermsGrid()1349 {1350 $I = $this;1351 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminSearchTermsGrid);1352 $I->see('Search Terms', self::$adminPageTitle);1353 }1354 public function shouldBeOnTheAdminSearchTermForIdPage($searchTermId, $searchQuery)1355 {1356 $I = $this;1357 $I->seeInCurrentUrl((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminSearchTermForIdPage . $searchTermId));1358 $I->see($searchQuery, self::$adminPageTitle);1359 }1360 public function shouldBeOnTheAdminAddSearchTermPage()1361 {1362 $I = $this;1363 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddSearchTermPage);1364 $I->see('New Search', self::$adminPageTitle);1365 }1366 public function shouldBeOnTheAdminSearchSynonymsGrid()1367 {1368 $I = $this;1369 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminSearchSynonymsGrid);1370 $I->see('Search Synonyms', self::$adminPageTitle);1371 }1372 public function shouldBeOnTheAdminSearchSynonymGroupByIdPage($searchSynonymId, $synonyms)1373 {1374 $I = $this;1375 $I->seeInCurrentUrl((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminSearchSynonymGroupForIdPage . $searchSynonymId));1376 $I->see($synonyms, self::$adminPageTitle);1377 }1378 public function shouldBeOnTheAdminAddSearchSynonymGroupPage()1379 {1380 $I = $this;1381 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddSearchSynonymGroupPage);1382 $I->see('New Synonym Group', self::$adminPageTitle);1383 }1384 public function shouldBeOnTheAdminSiteMapGrid()1385 {1386 $I = $this;1387 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminSiteMapGrid);1388 $I->see('Site Map', self::$adminPageTitle);1389 }1390 public function shouldBeOnTheAdminSiteMapForIdPage($siteMapId, $fileName)1391 {1392 $I = $this;1393 $I->seeInCurrentUrl((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminSiteMapForIdPage . $siteMapId));1394 $I->see($fileName, self::$adminPageTitle);1395 }1396 public function shouldBeOnTheAdminAddSiteMapPage()1397 {1398 $I = $this;1399 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddSiteMapPage);1400 $I->see('New Site Map', self::$adminPageTitle);1401 }1402 public function shouldBeOnTheAdminReviewsGrid()1403 {1404 $I = $this;1405 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminReviewsGrid);1406 $I->see('Reviews', self::$adminPageTitle);1407 }1408 public function shouldBeOnTheAdminReviewForIdPage($reviewId)1409 {1410 $I = $this;1411 $I->seeInCurrentUrl((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminReviewByIdPage . $reviewId));1412 $I->see('Edit Review', self::$adminPageTitle);1413 }1414 public function shouldBeOnTheAdminAddReviewPage()1415 {1416 $I = $this;1417 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddReviewPage);1418 $I->see('New Review', self::$adminPageTitle);1419 }1420 // Content1421 public function shouldBeOnTheAdminPagesGrid()1422 {1423 $I = $this;1424 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminPagesGrid);1425 $I->see('Pages', self::$adminPageTitle);1426 }1427 public function shouldBeOnTheAdminPageForIdPage($pageId, $pageTitle)1428 {1429 $I = $this;1430 $I->seeInCurrentUrl((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminPageForIdPage . $pageId));1431 $I->see($pageTitle, self::$adminPageTitle);1432 }1433 public function shouldBeOnTheAdminAddPagePage()1434 {1435 $I = $this;1436 $I->seeInCurrentUrl((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddPagePage));1437 $I->see('New Page', self::$adminPageTitle);1438 }1439 public function shouldBeOnTheAdminBlocksGrid()1440 {1441 $I = $this;1442 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminBlocksGrid);1443 $I->see('Blocks', self::$adminPageTitle);1444 }1445 public function shouldBeOnTheAdminBlockForIdPage($blockId, $blockTitle)1446 {1447 $I = $this;1448 $I->seeInCurrentUrl((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminBlockForIdPage . $blockId));1449 $I->see($blockTitle, self::$adminPageTitle);1450 }1451 public function shouldBeOnTheAdminAddBlockPage()1452 {1453 $I = $this;1454 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddBlockPage);1455 $I->see('New Block', self::$adminPageTitle);1456 }1457 public function shouldBeOnTheAdminWidgetsGrid()1458 {1459 $I = $this;1460 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminWidgetsGrid);1461 $I->see('Widgets', self::$adminPageTitle);1462 }1463 public function shouldBeOnTheAdminAddWidgetPage()1464 {1465 $I = $this;1466 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddWidgetPage);1467 $I->see('Widgets', self::$adminPageTitle);1468 }1469 public function shouldBeOnTheAdminDesignConfigurationGrid()1470 {1471 $I = $this;1472 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminDesignConfigurationGrid);1473 $I->see('Design Configuration', self::$adminPageTitle);1474 }1475 public function shouldBeOnTheAdminThemesGrid()1476 {1477 $I = $this;1478 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminThemesGrid);1479 $I->see('Themes', self::$adminPageTitle);1480 }1481 public function shouldBeOnTheAdminThemeByIdPage($themeId, $themeTitle)1482 {1483 $I = $this;1484 $I->seeInCurrentUrl((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminThemeByIdPage . $themeId));1485 $I->see($themeTitle);1486 }1487 public function shouldBeOnTheAdminStoreContentScheduleGrid()1488 {1489 $I = $this;1490 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminStoreContentScheduleGrid);1491 $I->see('Store Design Schedule', self::$adminPageTitle);1492 }1493 public function shouldBeOnTheAdminStoreContentScheduleForIdPage($storeContentScheduleId)1494 {1495 $I = $this;1496 $I->seeInCurrentUrl((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminStoreContentScheduleForIdPage . $storeContentScheduleId));1497 $I->see('Edit Store Design Change', self::$adminPageTitle);1498 }1499 public function shouldBeOnTheAdminAddStoreDesignChangePage()1500 {1501 $I = $this;1502 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddStoreDesignChangePage);1503 $I->see('New Store Design Change');1504 }1505 // Reports1506 public function shouldBeOnTheAdminProductsInCartGrid()1507 {1508 $I = $this;1509 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminProductsInCartGrid);1510 $I->see('Products in Carts', self::$adminPageTitle);1511 }1512 public function shouldBeOnTheAdminSearchTermsReportGrid()1513 {1514 $I = $this;1515 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminSearchTermsReportGrid);1516 $I->see('Search Terms Report', self::$adminPageTitle);1517 }1518 public function shouldBeOnTheAdminAbandonedCartsGrid()1519 {1520 $I = $this;1521 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAbandonedCartsGrid);1522 $I->see('Abandoned Carts', self::$adminPageTitle);1523 }1524 public function shouldBeOnTheAdminNewsletterProblemsReportGrid()1525 {1526 $I = $this;1527 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminNewsletterProblemsReportGrid);1528 $I->see('Newsletter Problems Report', self::$adminPageTitle);1529 }1530 public function shouldBeOnTheAdminCustomerReviewsReportGrid()1531 {1532 $I = $this;1533 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCustomerReviewsReportGrid);1534 $I->see('Customer Reviews Report', self::$adminPageTitle);1535 }1536 public function shouldBeOnTheAdminProductReviewsReportGrid()1537 {1538 $I = $this;1539 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminProductReviewsReportGrid);1540 $I->see('Product Reviews Report', self::$adminPageTitle);1541 }1542 public function shouldBeOnTheAdminProductReviewsForProductIdPage($productId)1543 {1544 $I = $this;1545 $I->seeInCurrentUrl((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminProductReviewsForProductIdPage . $productId));1546 $I->see('Reviews', self::$adminPageTitle);1547 }1548 public function shouldBeOnTheAdminProductReviewIdForProductIdPage($productReviewId, $productId)1549 {1550 $I = $this;1551 $I->seeInCurrentUrl(('/admin/review/product/edit/id/' . $productReviewId . '/productId/' . $productId));1552 $I->see('Edit Review', self::$adminPageTitle);1553 }1554 public function shouldBeOnTheAdminOrdersReportGrid()1555 {1556 $I = $this;1557 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminOrdersReportGrid);1558 $I->see('Orders Report', self::$adminPageTitle);1559 }1560 public function shouldBeOnTheAdminTaxReportGrid()1561 {1562 $I = $this;1563 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminTaxReportGrid);1564 $I->see('Tax Report', self::$adminPageTitle);1565 }1566 public function shouldBeOnTheAdminInvoiceReportGrid()1567 {1568 $I = $this;1569 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminInvoiceReportGrid);1570 $I->see('Invoice Report', self::$adminPageTitle);1571 }1572 public function shouldBeOnTheAdminShippingReportGrid()1573 {1574 $I = $this;1575 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminShippingReportGrid);1576 $I->see('Shipping Report', self::$adminPageTitle);1577 }1578 public function shouldBeOnTheAdminRefundsReportGrid()1579 {1580 $I = $this;1581 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminRefundsReportGrid);1582 $I->see('Refunds Report', self::$adminPageTitle);1583 }1584 public function shouldBeOnTheAdminCouponsReportGrid()1585 {1586 $I = $this;1587 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCouponsReportGrid);1588 $I->see('Coupons Report', self::$adminPageTitle);1589 }1590 public function shouldBeOnTheAdminPayPalSettlementReportsGrid()1591 {1592 $I = $this;1593 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminPayPalSettlementReportsGrid);1594 $I->see('PayPal Settlement Reports', self::$adminPageTitle);1595 }1596 public function shouldBeOnTheAdminBraintreeSettlementReportGrid()1597 {1598 $I = $this;1599 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminBraintreeSettlementReportGrid);1600 $I->see('Braintree Settlement Report', self::$adminPageTitle);1601 }1602 public function shouldBeOnTheAdminOrderTotalReportGrid()1603 {1604 $I = $this;1605 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminOrderTotalReportGrid);1606 $I->see('Order Total Report', self::$adminPageTitle);1607 }1608 public function shouldBeOnTheAdminOrderCountReportGrid()1609 {1610 $I = $this;1611 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminOrderCountReportGrid);1612 $I->see('Order Count Report', self::$adminPageTitle);1613 }1614 public function shouldBeOnTheAdminNewAccountsReportGrid()1615 {1616 $I = $this;1617 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminNewAccountsReportGrid);1618 $I->see('New Accounts Report', self::$adminPageTitle);1619 }1620 public function shouldBeOnTheAdminProductViewsReportGrid()1621 {1622 $I = $this;1623 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminProductViewsReportGrid);1624 $I->see('Product Views Report', self::$adminPageTitle);1625 }1626 public function shouldBeOnTheAdminBestsellersReportGrid()1627 {1628 $I = $this;1629 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminBestsellersReportGrid);1630 $I->see('Bestsellers Report', self::$adminPageTitle);1631 }1632 public function shouldBeOnTheAdminLowStockReportGrid()1633 {1634 $I = $this;1635 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminLowStockReportGrid);1636 $I->see('Low Stock Report', self::$adminPageTitle);1637 }1638 public function shouldBeOnTheAdminOrderedProductsGrid()1639 {1640 $I = $this;1641 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminOrderedProductsReportGrid);1642 $I->see('Ordered Products Report', self::$adminPageTitle);1643 }1644 public function shouldBeOnTheAdminDownloadsReportGrid()1645 {1646 $I = $this;1647 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminDownloadsReportGrid);1648 $I->see('Downloads Report', self::$adminPageTitle);1649 }1650 public function shouldBeOnTheAdminRefreshStatisticsGrid()1651 {1652 $I = $this;1653 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminRefreshStatisticsGrid);1654 $I->see('Refresh Statistics', self::$adminPageTitle);1655 }1656 // Stores1657 public function shouldBeOnTheAdminAllStoresGrid()1658 {1659 $I = $this;1660 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAllStoresGrid);1661 $I->see('Stores', self::$adminPageTitle);1662 }1663 public function shouldBeOnTheAdminCreateStoreViewPage()1664 {1665 $I = $this;1666 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCreateStoreViewPage);1667 $I->see('Stores', self::$adminPageTitle);1668 }1669 public function shouldBeOnTheAdminCreateStorePage()1670 {1671 $I = $this;1672 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCreateStorePage);1673 $I->see('Stores', self::$adminPageTitle);1674 }1675 public function shouldBeOnTheAdminCreateWebsitePage()1676 {1677 $I = $this;1678 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCreateWebsitePage);1679 $I->see('Stores');1680 }1681 public function shouldBeOnTheAdminWebsiteForIdPage($websiteId)1682 {1683 $I = $this;1684 $I->seeInCurrentUrl((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminWebsiteByIdPage . $websiteId));1685 }1686 public function shouldBeOnTheAdminStoreViewForIdPage($storeViewId)1687 {1688 $I = $this;1689 $I->seeInCurrentUrl((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminStoreViewByIdPage . $storeViewId));1690 }1691 public function shouldBeOnTheAdminStoreForIdPage($storeId)1692 {1693 $I = $this;1694 $I->seeInCurrentUrl((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminStoreByIdPage . $storeId));1695 }1696 public function shouldBeOnTheAdminConfigurationGrid()1697 {1698 $I = $this;1699 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminConfigurationGrid);1700 $I->see('Configuration', self::$adminPageTitle);1701 }1702 public function shouldBeOnTheAdminTermsAndConditionsGrid()1703 {1704 $I = $this;1705 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminTermsAndConditionsGrid);1706 $I->see('Terms and Conditions', self::$adminPageTitle);1707 }1708 public function shouldBeOnTheAdminTermsAndConditionForIdPage($termsAndConditionsId, $conditionName)1709 {1710 $I = $this;1711 $I->seeInCurrentUrl((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminTermsAndConditionByIdPage . $termsAndConditionsId));1712 $I->see($conditionName, self::$adminPageTitle);1713 }1714 public function shouldBeOnTheAdminAddNewTermsAndConditionsPage()1715 {1716 $I = $this;1717 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddNewTermsAndConditionPage);1718 $I->see('New Condition', self::$adminPageTitle);1719 }1720 public function shouldBeOnTheAdminOrderStatusGrid()1721 {1722 $I = $this;1723 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminOrderStatusGrid);1724 $I->see('Order Status', self::$adminPageTitle);1725 }1726 public function shouldBeOnTheAdminAddOrderStatusPage()1727 {1728 $I = $this;1729 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddOrderStatusPage);1730 $I->see('Create New Order Status', self::$adminPageTitle);1731 }1732 public function shouldBeOnTheAdminTaxRulesGrid()1733 {1734 $I = $this;1735 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminTaxRulesGrid);1736 $I->see('Tax Rules', self::$adminPageTitle);1737 }1738 public function shouldBeOnTheAdminTaxRuleForIdPage($taxRuleId, $taxRuleName)1739 {1740 $I = $this;1741 $I->seeInCurrentUrl((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminTaxRuleByIdPage . $taxRuleId));1742 $I->see($taxRuleName, self::$adminPageTitle);1743 }1744 public function shouldBeOnTheAdminAddTaxRulePage()1745 {1746 $I = $this;1747 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddTaxRulePage);1748 $I->see('New Tax Rule', self::$adminPageTitle);1749 }1750 public function shouldBeOnTheAdminTaxZonesAndRatesGrid()1751 {1752 $I = $this;1753 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminTaxZonesAndRatesGrid);1754 $I->see('Tax Zones and Rates', self::$adminPageTitle);1755 }1756 public function shouldBeOnTheAdminTaxZoneAndRateForIdPage($taxZoneAndRateId, $taxIdentifier)1757 {1758 $I = $this;1759 $I->seeInCurrentUrl((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminTaxZoneAndRateByIdPage . $taxZoneAndRateId));1760 $I->see($taxIdentifier, self::$adminPageTitle);1761 }1762 public function shouldBeOnTheAdminAddTaxZoneAndRatePage()1763 {1764 $I = $this;1765 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddTaxZoneAndRatePage);1766 $I->see('New Tax Rate', self::$adminPageTitle);1767 }1768 public function shouldBeOnTheAdminCurrencyRatesPage()1769 {1770 $I = $this;1771 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCurrencyRatesPage);1772 $I->see('Currency Rates', self::$adminPageTitle);1773 }1774 public function shouldBeOnTheAdminCurrencySymbolsPage()1775 {1776 $I = $this;1777 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCurrencySymbolsPage);1778 $I->see('Currency Symbols', self::$adminPageTitle);1779 }1780 public function shouldBeOnTheAdminProductAttributesGrid()1781 {1782 $I = $this;1783 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminProductAttributesGrid);1784 $I->see('Product Attributes', self::$adminPageTitle);1785 }1786 public function shouldBeOnTheAdminProductAttributeForIdPage($productAttributeId, $productAttributeDefaultLabel)1787 {1788 $I = $this;1789 $I->seeInCurrentUrl((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminProductAttributeForIdPage . $productAttributeId));1790 $I->see($productAttributeDefaultLabel, self::$adminPageTitle);1791 }1792 public function shouldBeOnTheAdminAddProductAttributePage()1793 {1794 $I = $this;1795 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddProductAttributePage);1796 $I->see('New Product Attribute', self::$adminPageTitle);1797 }1798 public function shouldBeOnTheAdminAttributeSetsGrid()1799 {1800 $I = $this;1801 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAttributeSetsGrid);1802 $I->see('Attribute Sets', self::$adminPageTitle);1803 }1804 public function shouldBeOnTheAdminAttributeSetByIdPage($attributeSetId, $attributeSetName)1805 {1806 $I = $this;1807 $I->seeInCurrentUrl((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAttributeSetByIdPage . $attributeSetId));1808 $I->see($attributeSetName, self::$adminPageTitle);1809 }1810 public function shouldBeOnTheAdminAddAttributeSetPage()1811 {1812 $I = $this;1813 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddAttributeSetPage);1814 $I->see('New Attribute Set', self::$adminPageTitle);1815 }1816 public function shouldBeOnTheAdminRatingsGrid()1817 {1818 $I = $this;1819 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminRatingsGrid);1820 $I->see('Ratings', self::$adminPageTitle);1821 }1822 public function shouldBeOnTheAdminRatingForIdPage($ratingId, $ratingDefaultValue)1823 {1824 $I = $this;1825 $I->seeInCurrentUrl((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminRatingForIdPage . $ratingId));1826 $I->see($ratingDefaultValue, self::$adminPageTitle);1827 }1828 public function shouldBeOnTheAdminAddRatingPage()1829 {1830 $I = $this;1831 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddRatingPage);1832 $I->see('New Rating', self::$adminPageTitle);1833 }1834 public function shouldBeOnTheAdminCustomerGroupsGrid()1835 {1836 $I = $this;1837 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCustomerGroupsGrid);1838 $I->see('Customer Groups', self::$adminPageTitle);1839 }1840 public function shouldBeOnTheAdminCustomerGroupForIdPage($customerGroupId, $customerGroupName)1841 {1842 $I = $this;1843 $I->seeInCurrentUrl((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCustomerGroupByIdPage . $customerGroupId));1844 $I->see($customerGroupName, self::$adminPageTitle);1845 }1846 public function shouldBeOnTheAdminAddCustomerGroupPage()1847 {1848 $I = $this;1849 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddCustomerGroupPage);1850 $I->see('New Customer Group', self::$adminPageTitle);1851 }1852 // System1853 public function shouldBeOnTheAdminImportPage()1854 {1855 $I = $this;1856 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminImportPage);1857 $I->see('Import', self::$adminPageTitle);1858 }1859 public function shouldBeOnTheAdminExportPage()1860 {1861 $I = $this;1862 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminExportPage);1863 $I->see('Export', self::$adminPageTitle);1864 }1865 public function shouldBeOnTheAdminImportAndExportTaxRatesPage()1866 {1867 $I = $this;1868 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminImportAndExportTaxRatesPage);1869 $I->see('Import and Export Tax Rates', self::$adminPageTitle);1870 }1871 public function shouldBeOnTheAdminImportHistoryGrid()1872 {1873 $I = $this;1874 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminImportHistoryGrid);1875 $I->see('Import History', self::$adminPageTitle);1876 }1877 public function shouldBeOnTheAdminIntegrationsGrid()1878 {1879 $I = $this;1880 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminIntegrationsGrid);1881 $I->see('Integrations', self::$adminPageTitle);1882 }1883 public function shouldBeOnTheAdminIntegrationForIdPage($integrationId, $integrationName)1884 {1885 $I = $this;1886 $I->seeInCurrentUrl((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminIntegrationByIdPage . $integrationId));1887 $I->see('Edit', self::$adminPageTitle);1888 $I->see($integrationName, self::$adminPageTitle);1889 $I->see('Integration', self::$adminPageTitle);1890 }1891 public function shouldBeOnTheAdminAddIntegrationPage()1892 {1893 $I = $this;1894 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddIntegrationPage);1895 $I->see('New Integration', self::$adminPageTitle);1896 }1897 public function shouldBeOnTheAdminCacheManagementGrid()1898 {1899 $I = $this;1900 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCacheManagementGrid);1901 $I->see('Cache Management', self::$adminPageTitle);1902 }1903 public function shouldBeOnTheAdminBackupsGrid()1904 {1905 $I = $this;1906 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminBackupsGrid);1907 $I->see('Backups', self::$adminPageTitle);1908 }1909 public function shouldBeOnTheAdminIndexManagementGrid()1910 {1911 $I = $this;1912 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminIndexManagementGrid);1913 $I->see('Index Management', self::$adminPageTitle);1914 }1915 public function shouldBeOnTheAdminWebSetupWizardPage()1916 {1917 $I = $this;1918 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminWebSetupWizardPage);1919 $I->see('Setup Wizard', self::$adminPageTitle);1920 }1921 public function shouldBeOnTheAdminAllUsersGrid()1922 {1923 $I = $this;1924 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAllUsersGrid);1925 $I->see('Users', self::$adminPageTitle);1926 }1927 public function shouldBeOnTheAdminUserForIdPage($userId, $userFirstAndLastName)1928 {1929 $I = $this;1930 $I->seeInCurrentUrl((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminUserByIdPage . $userId));1931 $I->see($userFirstAndLastName, self::$adminPageTitle);1932 }1933 public function shouldBeOnTheAdminAddUserPage()1934 {1935 $I = $this;1936 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddNewUserPage);1937 $I->see('New User', self::$adminPageTitle);1938 }1939 public function shouldBeOnTheAdminLockedUsersGrid()1940 {1941 $I = $this;1942 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminLockedUsersGrid);1943 $I->see('Locked Users', self::$adminPageTitle);1944 }1945 public function shouldBeOnTheAdminUserRolesGrid()1946 {1947 $I = $this;1948 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminUserRolesGrid);1949 $I->see('Roles', self::$adminPageTitle);1950 }1951 public function shouldBeOnTheAdminUserRoleForIdPage($userRoleId, $userRoleName)1952 {1953 $I = $this;1954 $I->seeInCurrentUrl((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminUserRoleByIdPage . $userRoleId));1955 $I->see($userRoleName, self::$adminPageTitle);1956 }1957 public function shouldBeOnTheAdminAddUserRolePage()1958 {1959 $I = $this;1960 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddUserRolePage);1961 $I->see('New Role', self::$adminPageTitle);1962 }1963 public function shouldBeOnTheAdminNotificationsGrid()1964 {1965 $I = $this;1966 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminNotificationsGrid);1967 $I->see('Notifications', self::$adminPageTitle);1968 }1969 public function shouldBeOnTheAdminCustomVariablesGrid()1970 {1971 $I = $this;1972 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCustomVariablesGrid);1973 $I->see('Custom Variables', self::$adminPageTitle);1974 }1975 public function shouldBeOnTheAdminCustomVariableForId($customVariableId, $customVariableCode)1976 {1977 $I = $this;1978 $I->seeInCurrentUrl((\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminCustomVariableByIdPage . $customVariableId));1979 $I->see($customVariableCode, self::$adminPageTitle);1980 }1981 public function shouldBeOnTheAdminAddCustomVariablePage()1982 {1983 $I = $this;1984 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminAddCustomVariablePage);1985 $I->see('New Custom Variable', self::$adminPageTitle);1986 }1987 public function shouldBeOnTheAdminEncryptionKeyPage()1988 {1989 $I = $this;1990 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminEncryptionKeyPage);1991 $I->see('Encryption Key', self::$adminPageTitle);1992 }1993 public function shouldBeOnTheAdminFindPartnersAndExtensionsPage() {1994 $I = $this;1995 $I->seeInCurrentUrl(\Magento\FunctionalTestingFramework\Helper\AdminUrlList::$adminFindPartnersAndExtensions);1996 $I->see('Magento Marketplace', self::$adminPageTitle);1997 }1998}...

Full Screen

Full Screen

FunctionalAreaController.php

Source:FunctionalAreaController.php Github

copy

Full Screen

...30 }31 public function indexFunctionalAreas()32 {33 $languages = DataArrayHelper::languagesNativeCodeArray();34 return view('admin.functional_area.index')->with('languages', $languages);35 }36 public function createFunctionalArea()37 {38 $languages = DataArrayHelper::languagesNativeCodeArray();39 $functionalAreas = DataArrayHelper::defaultFunctionalAreasArray();40 return view('admin.functional_area.add')41 ->with('languages', $languages)42 ->with('functionalAreas', $functionalAreas);43 }44 public function storeFunctionalArea(FunctionalAreaFormRequest $request)45 {46 $functionalArea = new FunctionalArea();47 $functionalArea->functional_area = $request->input('functional_area');48 $functionalArea->is_active = $request->input('is_active');49 $functionalArea->lang = $request->input('lang');50 $functionalArea->is_default = $request->input('is_default');51 $functionalArea->save();52 /* * ************************************ */53 $functionalArea->sort_order = $functionalArea->id;54 if ((int) $request->input('is_default') == 1) {55 $functionalArea->functional_area_id = $functionalArea->id;56 } else {57 $functionalArea->functional_area_id = $request->input('functional_area_id');58 }59 $functionalArea->update();60 flash('Functional Area has been added!')->success();61 return \Redirect::route('edit.functional.area', array($functionalArea->id));62 }63 public function editFunctionalArea($id)64 {65 $languages = DataArrayHelper::languagesNativeCodeArray();66 $functionalAreas = DataArrayHelper::defaultFunctionalAreasArray();67 $functionalArea = FunctionalArea::findOrFail($id);68 return view('admin.functional_area.edit')69 ->with('languages', $languages)70 ->with('functionalArea', $functionalArea)71 ->with('functionalAreas', $functionalAreas);72 }73 public function updateFunctionalArea($id, FunctionalAreaFormRequest $request)74 {75 $functionalArea = FunctionalArea::findOrFail($id);76 $functionalArea->functional_area = $request->input('functional_area');77 $functionalArea->is_active = $request->input('is_active');78 $functionalArea->lang = $request->input('lang');79 $functionalArea->is_default = $request->input('is_default');80 if ((int) $request->input('is_default') == 1) {81 $functionalArea->functional_area_id = $functionalArea->id;82 } else {83 $functionalArea->functional_area_id = $request->input('functional_area_id');84 }85 $functionalArea->update();86 flash('Functional Area has been updated!')->success();87 return \Redirect::route('edit.functional.area', array($functionalArea->id));88 }89 public function deleteFunctionalArea(Request $request)90 {91 $id = $request->input('id');92 try {93 $functionalArea = FunctionalArea::findOrFail($id);94 if ((bool) $functionalArea->is_default) {95 FunctionalArea::where('functional_area_id', '=', $functionalArea->functional_area_id)->delete();96 } else {97 $functionalArea->delete();98 }99 return 'ok';100 } catch (ModelNotFoundException $e) {101 return 'notok';102 }103 }104 public function fetchFunctionalAreasData(Request $request)105 {106 $functionalAreas = FunctionalArea::select(['functional_areas.id', 'functional_areas.functional_area', 'functional_areas.is_active', 'functional_areas.lang', 'functional_areas.is_default', 'functional_areas.created_at', 'functional_areas.updated_at'])->sorted();107 return Datatables::of($functionalAreas)108 ->filter(function ($query) use ($request) {109 if ($request->has('functional_area') && !empty($request->functional_area)) {110 $query->where('functional_areas.functional_area', 'like', "%{$request->get('functional_area')}%");111 }112 if ($request->has('lang') && !empty($request->get('lang'))) {113 $query->where('functional_areas.lang', 'like', "%{$request->get('lang')}%");114 }115 if ($request->has('is_active') && $request->get('is_active') != -1) {116 $query->where('functional_areas.is_active', '=', "{$request->get('is_active')}");117 }118 })119 ->addColumn('functional_area', function ($functionalAreas) {120 $functionalArea = str_limit($functionalAreas->functional_area, 100, '...');121 $direction = MiscHelper::getLangDirection($functionalAreas->lang);122 return '<span dir="' . $direction . '">' . $functionalArea . '</span>';123 })124 ->addColumn('action', function ($functionalAreas) {125 /* * ************************* */126 $activeTxt = 'Make Active';127 $activeHref = 'makeActive(' . $functionalAreas->id . ');';128 $activeIcon = 'square-o';129 if ((int) $functionalAreas->is_active == 1) {130 $activeTxt = 'Make InActive';131 $activeHref = 'makeNotActive(' . $functionalAreas->id . ');';132 $activeIcon = 'check-square-o';133 }134 return '135 <div class="btn-group">136 <button class="btn blue dropdown-toggle" data-toggle="dropdown" aria-expanded="false">Action137 <i class="fa fa-angle-down"></i>138 </button>139 <ul class="dropdown-menu">140 <li>141 <a href="' . route('edit.functional.area', ['id' => $functionalAreas->id]) . '"><i class="fa fa-pencil" aria-hidden="true"></i>Edit</a>142 </li> 143 <li>144 <a href="javascript:void(0);" onclick="deleteFunctionalArea(' . $functionalAreas->id . ', ' . $functionalAreas->is_default . ');" class=""><i class="fa fa-trash-o" aria-hidden="true"></i>Delete</a>145 </li>146 <li>147 <a href="javascript:void(0);" onClick="' . $activeHref . '" id="onclickActive' . $functionalAreas->id . '"><i class="fa fa-' . $activeIcon . '" aria-hidden="true"></i>' . $activeTxt . '</a>148 </li> 149 </ul>150 </div>';151 })152 ->rawColumns(['functional_area', 'action'])153 ->setRowId(function($functionalAreas) {154 return 'functionalAreaDtRow' . $functionalAreas->id;155 })156 ->make(true);157 //$query = $dataTable->getQuery()->get();158 //return $query;159 }160 public function makeActiveFunctionalArea(Request $request)161 {162 $id = $request->input('id');163 try {164 $functionalArea = FunctionalArea::findOrFail($id);165 $functionalArea->is_active = 1;166 $functionalArea->update();167 echo 'ok';168 } catch (ModelNotFoundException $e) {169 echo 'notok';170 }171 }172 public function makeNotActiveFunctionalArea(Request $request)173 {174 $id = $request->input('id');175 try {176 $functionalArea = FunctionalArea::findOrFail($id);177 $functionalArea->is_active = 0;178 $functionalArea->update();179 echo 'ok';180 } catch (ModelNotFoundException $e) {181 echo 'notok';182 }183 }184 public function sortFunctionalAreas()185 {186 $languages = DataArrayHelper::languagesNativeCodeArray();187 return view('admin.functional_area.sort')->with('languages', $languages);188 }189 public function functionalAreaSortData(Request $request)190 {191 $lang = $request->input('lang');192 $functionalAreas = FunctionalArea::select('functional_areas.id', 'functional_areas.functional_area', 'functional_areas.sort_order')193 ->where('functional_areas.lang', 'like', $lang)194 ->orderBy('functional_areas.sort_order')195 ->get();196 $str = '<ul id="sortable">';197 if ($functionalAreas != null) {198 foreach ($functionalAreas as $functionalArea) {199 $str .= '<li id="' . $functionalArea->id . '"><i class="fa fa-sort"></i>' . $functionalArea->functional_area . '</li>';200 }201 }202 echo $str . '</ul>';203 }204 public function functionalAreaSortUpdate(Request $request)205 {206 $functionalAreaOrder = $request->input('functionalAreaOrder');207 $functionalAreaOrderArray = explode(',', $functionalAreaOrder);208 $count = 1;209 foreach ($functionalAreaOrderArray as $functionalAreaId) {210 $functionalArea = FunctionalArea::find($functionalAreaId);211 $functionalArea->sort_order = $count;212 $functionalArea->update();213 $count++;214 }215 }216}...

Full Screen

Full Screen

ObjectManagerFactory.php

Source:ObjectManagerFactory.php Github

copy

Full Screen

1<?php2/**3 * Copyright © Magento, Inc. All rights reserved.4 * See COPYING.txt for license details.5 */6namespace Magento\FunctionalTestingFramework;7use Magento\FunctionalTestingFramework\ObjectManager\Factory;8use Magento\FunctionalTestingFramework\Stdlib\BooleanUtils;9use Magento\FunctionalTestingFramework\ObjectManager as MagentoObjectManager;10/**11 * Object Manager Factory.12 *13 * @api14 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)15 */16// @codingStandardsIgnoreFile17class ObjectManagerFactory18{19 /**20 * Object Manager class name.21 *22 * @var string23 */24 protected $locatorClassName = '\Magento\FunctionalTestingFramework\ObjectManager';25 /**26 * DI Config class name.27 *28 * @var string29 */30 protected $configClassName = '\Magento\FunctionalTestingFramework\ObjectManager\Config';31 /**32 * Create Object Manager.33 *34 * @param array $sharedInstances35 * @return ObjectManager36 */37 public function create(array $sharedInstances = [])38 {39 /** @var \Magento\FunctionalTestingFramework\ObjectManager\Config $diConfig */40 $diConfig = new $this->configClassName();41 $factory = new Factory($diConfig);42 $argInterpreter = $this->createArgumentInterpreter(new BooleanUtils());43 $argumentMapper = new \Magento\FunctionalTestingFramework\ObjectManager\Config\Mapper\Dom($argInterpreter);44 $sharedInstances['Magento\FunctionalTestingFramework\Data\Argument\InterpreterInterface'] = $argInterpreter;45 $sharedInstances['Magento\FunctionalTestingFramework\ObjectManager\Config\Mapper\Dom'] = $argumentMapper;46 /** @var \Magento\FunctionalTestingFramework\ObjectManager $objectManager */47 $objectManager = new $this->locatorClassName($factory, $diConfig, $sharedInstances);48 $factory->setObjectManager($objectManager);49 ObjectManager::setInstance($objectManager);50 self::configure($objectManager);51 return $objectManager;52 }53 /**54 * Return newly created instance on an argument interpreter, suitable for processing DI arguments.55 *56 * @param \Magento\FunctionalTestingFramework\Stdlib\BooleanUtils $booleanUtils57 * @return \Magento\FunctionalTestingFramework\Data\Argument\InterpreterInterface58 */59 protected function createArgumentInterpreter(60 \Magento\FunctionalTestingFramework\Stdlib\BooleanUtils $booleanUtils61 ) {62 $constInterpreter = new \Magento\FunctionalTestingFramework\Data\Argument\Interpreter\Constant();63 $result = new \Magento\FunctionalTestingFramework\Data\Argument\Interpreter\Composite(64 [65 'boolean' => new \Magento\FunctionalTestingFramework\Data\Argument\Interpreter\Boolean($booleanUtils),66 'string' => new \Magento\FunctionalTestingFramework\Data\Argument\Interpreter\StringUtils($booleanUtils),67 'number' => new \Magento\FunctionalTestingFramework\Data\Argument\Interpreter\Number(),68 'null' => new \Magento\FunctionalTestingFramework\Data\Argument\Interpreter\NullType(),69 'const' => $constInterpreter,70 'object' => new \Magento\FunctionalTestingFramework\Data\Argument\Interpreter\DataObject($booleanUtils),71 'init_parameter' => new \Magento\FunctionalTestingFramework\Data\Argument\Interpreter\Argument($constInterpreter),72 ],73 \Magento\FunctionalTestingFramework\ObjectManager\Config\Reader\Dom::TYPE_ATTRIBUTE74 );75 // Add interpreters that reference the composite76 $result->addInterpreter('array', new \Magento\FunctionalTestingFramework\Data\Argument\Interpreter\ArrayType($result));77 return $result;78 }79 /**80 * Get Object Manager instance.81 *82 * @return ObjectManager83 */84 public static function getObjectManager()85 {86 if (!$objectManager = ObjectManager::getInstance()) {87 $objectManagerFactory = new self();88 $objectManager = $objectManagerFactory->create();89 }90 return $objectManager;91 }92 /**93 * Configure Object Manager.94 * This method is static to have the ability to configure multiple instances of Object manager when needed.95 *96 * @param \Magento\FunctionalTestingFramework\ObjectManagerInterface $objectManager97 * @return void98 */99 public static function configure(\Magento\FunctionalTestingFramework\ObjectManagerInterface $objectManager)100 {101 $objectManager->configure(102 $objectManager->get(\Magento\FunctionalTestingFramework\ObjectManager\ConfigLoader\Primary::class)->load()103 );104 }105}...

Full Screen

Full Screen

functional

Using AI Code Generation

copy

Full Screen

1use atoum\atoum;2use atoum\atoum;3use atoum\atoum;4use atoum\atoum;5use atoum\atoum;6use atoum\atoum;7use atoum\atoum;8use atoum\atoum;9use atoum\atoum;10use atoum\atoum;11use atoum\atoum;12use atoum\atoum;13use atoum\atoum;14use atoum\atoum;15use atoum\atoum;16use atoum\atoum;17use atoum\atoum;18use atoum\atoum;19use atoum\atoum;

Full Screen

Full Screen

functional

Using AI Code Generation

copy

Full Screen

1require_once 'vendor/autoload.php';2use atoum\atoum;3$script->addDefaultReport();4require_once 'vendor/autoload.php';5use atoum\atoum;6$script->addDefaultReport();7require_once 'vendor/autoload.php';8use atoum\atoum;9$script->addDefaultReport();10require_once 'vendor/autoload.php';11use atoum\atoum;12$script->addDefaultReport();13require_once 'vendor/autoload.php';14use atoum\atoum;15$script->addDefaultReport();16require_once 'vendor/autoload.php';17use atoum\atoum;18$script->addDefaultReport();19require_once 'vendor/autoload.php';20use atoum\atoum;21$script->addDefaultReport();22require_once 'vendor/autoload.php';23use atoum\atoum;24$script->addDefaultReport();25require_once 'vendor/autoload.php';26use atoum\atoum;27$script->addDefaultReport();28require_once 'vendor/autoload.php';29use atoum\atoum;30$script->addDefaultReport();31require_once 'vendor/autoload.php';32use atoum\atoum;33$script->addDefaultReport();34require_once 'vendor/autoload.php';35use atoum\atoum;36$script->addDefaultReport();

Full Screen

Full Screen

functional

Using AI Code Generation

copy

Full Screen

1$test->class('Atoum\Functional\Class')->hasMethod('method');2$test->class('Atoum\Functional\Class')->hasConstant('constant');3$test->class('Atoum\Functional\Class')->hasParent('parent');4$test->class('Atoum\Functional\Class')->hasInterface('interface');5$test->class('Atoum\Functional\Class')->hasTrait('trait');6$test->class('Atoum\Functional\Class')->hasAttribute('attribute');7$test->class('Atoum\Functional\Class')->hasArgument('argument');8$test->class('Atoum\Functional\Class')->hasArgument(0);9$test->class('Atoum\Functional\Class')->hasArgument('argument', $test->isInstanceOf('Atoum\Functional\Class'));10$test->class('Atoum\Functional\Class')->hasArgument(0, $test->isInstanceOf('Atoum\Functional\Class'));11$test->class('Atoum\Functional\Class')->hasArgument('argument', $test->isInstanceOf('Atoum\Functional\Class'), 0);12$test->class('Atoum\Functional\Class')->hasArgument(0, $test->isInstanceOf('Atoum\Functional\Class'), 0);13$test->class('Atoum\Functional\Class')->hasArgument('argument', $test->isInstanceOf('Atoum\Functional\Class'), 0, $test->isInstanceOf('Atoum\Functional\Class'));14$test->class('Atoum\Functional\Class')->hasArgument(0, $test->isInstanceOf('Atoum\Functional\Class'), 0, $test->isInstanceOf('Atoum\Functional\Class'));15$test->class('Atoum\Functional\Class')->hasMethod('method');16$test->class('Atoum\Functional\Class')->hasConstant('constant');17$test->class('Atoum\Functional\Class')->hasParent('parent');18$test->class('Atoum\Functional\Class')->hasInterface('interface');19$test->class('Atoum\Functional\Class')->hasTrait('trait');20$test->class('Atoum\Functional\Class')->has

Full Screen

Full Screen

functional

Using AI Code Generation

copy

Full Screen

1use mageekguy\atoum;2{3 public function testAddition()4 {5 ;6 }7}8use mageekguy\atoum;9{10 public function testAddition()11 {12 ;13 }14}

Full Screen

Full Screen

functional

Using AI Code Generation

copy

Full Screen

1use \mageekguy\atoum;2{3 protected $myVar = null;4 public function __construct($myVar)5 {6 $this->myVar = $myVar;7 }8 public function getMyVar()9 {10 return $this->myVar;11 }12}13{14 public function testMyVar()15 {16 $myVar = 'myVarValue';17 $myClass = new MyClass($myVar);18 $this->string($myClass->getMyVar())->isEqualTo($myVar);19 }20}21use \mageekguy\atoum;22{23 public function testMyVar()24 {25 $myVar = 'myVarValue';26 $myClass = new MyClass($myVar);27 $this->string($myClass->getMyVar())->isEqualTo($myVar);28 }29}30{31 protected $myVar = null;32 public function __construct($myVar)33 {34 $this->myVar = $myVar;35 }36 public function getMyVar()37 {38 return $this->myVar;39 }40}

Full Screen

Full Screen

functional

Using AI Code Generation

copy

Full Screen

1use \mageekguy\atoum\test;2{3 public function testMyClass()4 {5 $this->assert->class('myClass')->hasInterface('myInterface');6 }7}8use \mageekguy\atoum\test;9{10 public function testMyClass()11 {12 $this->assert->class('myClass')->hasInterface('myInterface');13 }14}15use \mageekguy\atoum\test;16{17 public function testMyClass()18 {19 $this->assert->class('myClass')->hasInterface('myInterface');20 }21}22use \mageekguy\atoum\test;23{24 public function testMyClass()25 {26 $this->assert->class('myClass')->hasInterface('myInterface');27 }28}29use \mageekguy\atoum\test;30{31 public function testMyClass()32 {33 $this->assert->class('myClass')->hasInterface('myInterface');34 }35}36use \mageekguy\atoum\test;37{38 public function testMyClass()39 {40 $this->assert->class('myClass')->hasInterface('myInterface');41 }42}43use \mageekguy\atoum\test;44{45 public function testMyClass()46 {47 $this->assert->class('myClass')->hasInterface('myInterface');48 }49}50use \mageekguy\atoum\test;51{52 public function testMyClass()53 {54 $this->assert->class('

Full Screen

Full Screen

functional

Using AI Code Generation

copy

Full Screen

1use \mageekguy\atoum;2{3 public function test1()4 {5 }6}7$test = new test();8$test->run();9$test->getScore();10$test->getHtmlReport();11$test->getCliReport();12$test->getXmlReport();13$test->getJsonReport();14$test->getTapReport();15$test->getxUnitReport();16$test->getMarkdownReport();17$test->getCoberturaReport();18$test->getCloverReport();19$test->getJUnitReport();20$test->getTeamCityReport();21$test->getTextReport();22$test->getCsvReport();23$test->getPhpReport();24$test->getJsonReport();

Full Screen

Full Screen

functional

Using AI Code Generation

copy

Full Screen

1use atoum\test;2use atoum\mock;3{4 public function test2()5 {6 $this->mockGenerator->orphanize('__construct');7 $mock = new mock\class('test2');8 $mock->getMockController()->test3 = function () {9 return 'foo';10 };11 $this->string($mock->test3())->isEqualTo('foo');12 }13}14$test1 = new test1();15$test1->test2();16$test1->run();17$test1->display();18$test1->displayReport();19$test1->getScore();20$test1->getCoverage();21$test1->getPhpPath();22$test1->getPhpVersion();

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run Atoum automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Most used methods in functional

Run Selenium Automation Tests on LambdaTest Cloud Grid

Trigger Selenium automation tests on a cloud-based Grid of 3000+ real browsers and operating systems.

Test now for Free

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful