当前位置: 首页>>代码示例>>PHP>>正文


PHP AcceptanceTester::comment方法代码示例

本文整理汇总了PHP中AcceptanceTester::comment方法的典型用法代码示例。如果您正苦于以下问题:PHP AcceptanceTester::comment方法的具体用法?PHP AcceptanceTester::comment怎么用?PHP AcceptanceTester::comment使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AcceptanceTester的用法示例。


在下文中一共展示了AcceptanceTester::comment方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: installWeblinks

 /**
  * @depends installJoomla
  */
 public function installWeblinks(\AcceptanceTester $I)
 {
     $I->doAdministratorLogin();
     $I->comment('get Weblinks repository folder from acceptance.suite.yml (see _support/AcceptanceHelper.php)');
     $path = $I->getConfiguration('repo_folder');
     $I->installExtensionFromFolder($path . 'src/com_weblinks/');
     $I->doAdministratorLogout();
 }
开发者ID:remotehelp,项目名称:weblinks,代码行数:11,代码来源:InstallWeblinksCest.php

示例2: installWeblinks

 /**
  * @depends installJoomla
  */
 public function installWeblinks(\AcceptanceTester $I)
 {
     $I->doAdministratorLogin();
     $I->comment('get Weblinks repository folder from acceptance.suite.yml (see _support/AcceptanceHelper.php)');
     // URL where the package file to install is located (mostly the same as joomla-cms)
     $url = $I->getConfiguration('url');
     $I->installExtensionFromUrl($url . "/pkg-weblinks-current.zip");
     $I->doAdministratorLogout();
 }
开发者ID:N6REJ,项目名称:weblinks,代码行数:12,代码来源:InstallWeblinksCest.php

示例3: initializeCmcSettings

 /**
  * @depends installCmc
  */
 public function initializeCmcSettings(\AcceptanceTester $I)
 {
     $I->doAdministratorLogin();
     $I->comment('Mailchimp API Key from acceptance.suite.yml (see _support/AcceptanceHelper.php)');
     $key = $I->getConfiguration('api_key');
     $I->amGoingTo('Navigate to CMC page in /administrator/');
     $I->amOnPage('administrator/index.php?option=com_cmc&view=cpanel');
     // Wait for text dashboard - wait for text not working
     $I->waitForElementVisible('#ctitle');
     $I->checkForPhpNoticesOrWarnings();
     // Options
     $I->click('Options');
     $I->waitForText('Configuration', '30', ['css' => 'h1']);
     $I->fillField(['id' => 'jform_api_key'], $key);
     $I->click('Save & Close');
     // Basck in the dashboard
     $I->waitForElementVisible('#ctitle');
     $I->doAdministratorLogout();
 }
开发者ID:fracting,项目名称:cmc,代码行数:22,代码来源:InstallCmcCest.php

示例4:

<?php

/**
 * @package     redCORE
 * @subpackage  Cept
 * @copyright   Copyright (C) 2008 - 2015 redCOMPONENT.com. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
// Load the Step Object Page
$I = new \AcceptanceTester($scenario);
$I->wantToTest('Activate the default webservices available in redCORE');
$I->doAdministratorLogin();
$I->comment('I enable basic authentication');
$I->amOnPage('administrator/index.php?option=com_plugins');
$I->waitForText('Plugins', 30, ['css' => 'H1']);
$I->fillField(['id' => 'filter_search'], 'redcore - system plugin');
$I->click(['xpath' => "//div[@id='filter-bar']/div[2]/button"]);
// search button
$I->click(['link' => 'redCORE - System plugin']);
$I->waitForText('Plugins: redCORE - System plugin', 30, ['css' => 'h1']);
$I->click(['link' => 'Webservice options']);
$I->selectOptionInRadioField('Enable webservices', 'Yes');
$I->selectOptionInRadioField('Enable SOAP Server', 'Yes');
$I->selectOptionInChosen('Check user permission against', 'Joomla - Use already defined authorization checks in Joomla');
$I->click(['xpath' => "//div[@id='toolbar-apply']/button"]);
$I->waitForText('Plugin successfully saved.', 30, ['id' => 'system-message-container']);
$I->amOnPage('administrator/index.php?option=com_redcore&view=webservices');
$I->waitForText('Webservice Manager', 30, ['css' => 'H1']);
$I->click(['class' => 'lc-not_installed_webservices']);
$I->click(['class' => 'lc-install_all_webservices']);
$I->waitForElement(['id' => 'oauthClientsList'], 30);
开发者ID:thangredweb,项目名称:redCORE,代码行数:31,代码来源:04-ActivateDefaultWebservicesWithBasicAuthenticationCept.php

示例5: loginWrongEmail

 function loginWrongEmail(AcceptanceTester $I, \Page\Login $loginPage)
 {
     $loginPage->login('test@test.com', '123456');
     $I->see('Invalid login or password.', 'li.error-msg');
     $I->comment('Expected result: Please enter a valid email address.');
 }
开发者ID:Sereda-Fazen,项目名称:CadenceProduction,代码行数:6,代码来源:02_LoginCest.php

示例6: registerEmptySecondPass

 function registerEmptySecondPass(AcceptanceTester $I, \Page\Registration $registerPage)
 {
     $registerPage->registerInvalid('alex', 'sereda', 'fazen7@mail.org', '123456', '');
     $I->see('This is a required field.', '#advice-required-entry-confirmation');
     $I->comment('Expected result: This is a required second field.');
 }
开发者ID:Sereda-Fazen,项目名称:DenimioTest,代码行数:6,代码来源:02_RegistrationCest.php

示例7: CheckInPaymentList

 /**
  * Check Paymement
  * 
  * Checks that passed method present at "payment list" page ,
  * then checks the passed parameters and return his row, 
  * or fail test if something wrong
  * 
  * @param AcceptanceTester  $I                  controller
  * @param string            $name               Name of Payment method
  * @param string            $CurrencyName       checks currency name if isset
  * @param string            $CurrencySymbol     checks currency symbol if isset
  * @param bool              $active             checks that method: true - active || false unactive if isset
  * @return int              return row of passed payment
  */
 protected function CheckInPaymentList(AcceptanceTester $I, $name, $CurrencyName = null, $CurrencySymbol = null, $active = null)
 {
     isset($name) ? $I->comment("I search method {$name} in list") : $I->fail("name of payment method must be passed");
     $I->amOnPage(PaymentListPage::$URL);
     $I->waitForText("Список способов оплаты", NULL, ".title");
     $present = false;
     $rows = $I->grabClassCount($I, 'niceCheck') - 1;
     if ($rows > 0) {
         for ($row = 1; $row <= $rows; ++$row) {
             $PaymentMethod = $I->grabTextFrom(PaymentListPage::MethodNameLine($row));
             if ($PaymentMethod == $name) {
                 $I->assertEquals($PaymentMethod, $name, "Method {$PaymentMethod} present in row {$row}");
                 $present = true;
                 break;
             }
         }
     } else {
         $I->fail("Couldn't find {$name}, there are no created payments");
     }
     if (!$present) {
         $I->fail("There is no payment {$name} in list");
     }
     if (isset($CurrencyName)) {
         $grabbedCurrencyName = $I->grabTextFrom(PaymentListPage::CurrencyNameLine($row));
         $I->assertEquals($grabbedCurrencyName, $CurrencyName);
     }
     if (isset($CurrencySymbol)) {
         $grabbedCurrencySymbol = $I->grabTextFrom(PaymentListPage::CurrencySymbolLine($row));
         $I->assertEquals($grabbedCurrencySymbol, $CurrencySymbol);
     }
     if (isset($active)) {
         $grabbedActiveClass = $I->grabAttributeFrom(PaymentListPage::ActiveLine($row), 'class');
         $active ? $I->assertEquals($grabbedActiveClass, 'prod-on_off ') : $I->assertEquals($grabbedActiveClass, 'prod-on_off disable_tovar');
     }
     return $row;
 }
开发者ID:NaszvadiG,项目名称:ImageCMS,代码行数:50,代码来源:PaymentHelper.php

示例8: loginInvalidEmail

 function loginInvalidEmail(AcceptanceTester $I, \Page\Login $loginPage)
 {
     $loginPage->loginInvalid('testemail.com', '123456');
     $I->see('Please enter a valid email address. For example johndoe@domain.com.', '#advice-validate-email-email');
     $I->comment('Expected result: Please enter a valid email address.');
 }
开发者ID:Sereda-Fazen,项目名称:DenimioTest,代码行数:6,代码来源:02_LoginCest.php


注:本文中的AcceptanceTester::comment方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。