本文整理汇总了PHP中sfTestFunctional::info方法的典型用法代码示例。如果您正苦于以下问题:PHP sfTestFunctional::info方法的具体用法?PHP sfTestFunctional::info怎么用?PHP sfTestFunctional::info使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sfTestFunctional
的用法示例。
在下文中一共展示了sfTestFunctional::info方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: dirname
<?php
include dirname(__FILE__) . '/../../bootstrap/functional.php';
$filePath = sfConfig::get('sf_web_dir') . '/images/skin_header_logo.jpg';
$browser = new sfTestFunctional(new opBrowser(), new lime_test(null, new lime_output_color()));
$params = array('authMailAddress' => array('mail_address' => 'sns@example.com', 'password' => 'password'));
$browser->info('1. When an user tries to post more than 4 photos, he gets an error message. (ref. #3544)')->info('1st Post')->post('/member/login/authMode/MailAddress', $params)->get('member/configImage')->click('アップロードする', array('member_image' => array('file' => array('name' => $filePath, 'type' => 'image/jpeg'))))->isStatusCode(302)->followRedirect()->info('2nd Post')->click('アップロードする', array('member_image' => array('file' => array('name' => $filePath, 'type' => 'image/jpeg'))))->isStatusCode(302)->followRedirect()->info('3rd Post')->click('アップロードする', array('member_image' => array('file' => array('name' => $filePath, 'type' => 'image/jpeg'))))->isStatusCode(302)->followRedirect()->info('4th Post')->click('アップロードする', array('member_image' => array('file' => array('name' => $filePath, 'type' => 'image/jpeg'))))->isStatusCode(200)->with('response')->begin()->checkElement('#flashError td:contains("これ以上画像を追加できません。")', true)->end();
示例2: dirname
<?php
require_once dirname(__FILE__) . '/../bootstrap/bootstrap.php';
$browser = new sfTestFunctional(new sfBrowser());
$browser->info('Testing my application homepage')->get('/')->with('response')->begin()->isStatusCode(200)->end();
示例3: dirname
<?php
// functional test for a few special things in the admin module
require_once dirname(__FILE__) . '/../bootstrap/functional.php';
require_once sfConfig::get('sf_lib_dir') . '/test/unitHelper.php';
$browser = new sfTestFunctional(new sfBrowser());
$browser->setTester('doctrine', 'sfTesterDoctrine');
$arr = create_doctrine_test_tree($browser->test());
$root = $arr['rt'];
$rootForm = new ioDoctrineMenuItemForm($root);
$browser->info('1 - Edit an existing, you cannot place it via parent_id')->get(sprintf('/test/menu/%d/edit', $root->id))->with('request')->begin()->isParameter('module', 'io_doctrine_menu')->isParameter('action', 'edit')->end()->with('response')->begin()->checkForm($rootForm)->info(' 1.1 - The root menu has no parent_id field')->checkElement('#io_doctrine_menu_item_parent_id', 0)->end()->click('Save', array('io_doctrine_menu_item' => array('parent_id' => $root->id)))->with('form')->begin()->hasErrors(1)->hasGlobalError('extra_fields')->end();
$browser->info('2 - Create a new menu item, set it as a child of something')->get('/test/menu/new')->with('request')->begin()->isParameter('module', 'io_doctrine_menu')->isParameter('action', 'new')->end()->with('response')->begin()->checkForm('ioDoctrineMenuItemForm')->info(' 2.1 - The root menu has a parent_id field')->checkElement('#io_doctrine_menu_item_parent_id', 1)->end()->click('Save', array('io_doctrine_menu_item' => array('parent_id' => $root->id, 'name' => 'new child')))->with('form')->begin()->hasErrors(0)->end()->with('doctrine')->begin()->check('ioDoctrineMenuItem', array('name' => 'new child', 'root_id' => $root->id, 'lft' => 16, 'rgt' => 17, 'level' => 1))->end();
die;
$browser->info('3 - Create a new menu item, make it root')->get('/test/menu/new')->with('request')->begin()->isParameter('module', 'io_doctrine_menu')->isParameter('action', 'new')->end()->click('Save', array('io_doctrine_menu_item' => array('name' => 'new root')))->with('form')->begin()->hasErrors(0)->end()->with('doctrine')->begin()->check('ioDoctrineMenuItem', array('name' => 'new root', 'lft' => 18, 'rgt' => 19, 'level' => 0))->end();
示例4: dirname
<?php
include dirname(__FILE__) . '/../../bootstrap/doctrine.php';
$browser = new sfTestFunctional(new sfBrowser());
$browser->setTester('mailerx', 'sfTesterMailerExt');
$browser->info('1. Invite user')->info(' 1.1 Invite page')->get('/user/invite')->with('response')->isStatusCode(302)->get('/login')->click('form input[type=submit]', array('login' => array('email' => 'ever.zet@gmail.com', 'password' => 'test_PaSS')))->with('response')->followRedirect()->with('user')->isAuthenticated(true)->get('/user/invite')->with('request')->begin()->isParameter('module', 'sfObjectGuardInvite')->isParameter('action', 'index')->end()->with('response')->begin()->isStatusCode(200)->checkElement('h1', 'Invite user')->checkForm('sfObjectGuardInviteForm')->checkElement('form input[type=submit]', 1)->end()->info(' 1.2 Submitted form with existent email')->click('form input[type=submit]', array('invite' => array('email' => 'ever.zet@gmail.com')))->with('form')->begin()->hasErrors(true)->end()->info(' 1.3 Submitted form with new email')->click('form input[type=submit]', array('invite' => array('email' => $email = 'tester@super.com')))->with('form')->begin()->hasErrors(false)->end()->info(' 1.4 Mail sending')->with('mailerx')->begin()->hasSent(1)->withMessage('tester@super.com')->checkHeader('Subject', '/Invite to the/')->checkBody('/Go to the following link to finish registration:/')->checkBody('/<a href=\\".*\\/user\\/activate\\/.*\\">/')->regexpBody('/<a href=\\".*(\\/user\\/activate\\/[^\\"\\/]*)\\">/', $activationMailLink)->checkBody(sprintf('/Your email: \\"%s\\"/', $email))->checkBody('/Your temporary password: \\"[^\\"]*\\"/')->regexpBody('/Your temporary password: \\"([^\\"]*)\\"/', $activationMailPassword)->end()->with('response')->isRedirected()->followRedirect()->with('response')->begin()->checkElement('p', '/We have successfully sent registration instructions to the specified email/')->end()->info('2. Account activation')->get($activationMailLink[1])->with('request')->begin()->isParameter('module', 'sfObjectGuardAuth')->isParameter('action', 'activate')->end()->with('response')->followRedirect()->info('3. Check user')->get('/logout')->with('response')->followRedirect()->get('/login')->click('form input[type=submit]', array('login' => array('email' => $email, 'password' => $activationMailPassword[1])))->with('form')->begin()->hasErrors(false)->end()->with('response')->followRedirect()->with('user')->isAuthenticated(true);
示例5: sfTestFunctional
<?php
include(dirname(__FILE__).'/../../bootstrap/functional.php');
$browser = new sfTestFunctional(new sfBrowser());
$browser->info('no tests available');
/*
$browser->
get('/newsletter/index')->
with('request')->begin()->
isParameter('module', 'newsletter')->
isParameter('action', 'index')->
end()->
with('response')->begin()->
isStatusCode(200)->
checkElement('body', '!/This is a temporary page/')->
end()
;
*/
示例6: dirname
<?php
include dirname(__FILE__) . '/../../bootstrap/functional.php';
$browser = new sfTestFunctional(new sfBrowser());
$browser->get('/default/index')->with('request')->begin()->isParameter('module', 'default')->isParameter('action', 'index')->end()->with('response')->begin()->isStatusCode(200)->checkElement('body', '!/This is a temporary page/')->end();
$browser->info('Personalized 404 page')->get('/404')->with('request')->begin()->isParameter('module', 'default')->isParameter('action', '404')->end()->with('response')->begin()->isStatusCode(404)->checkElement('.content', '#404#')->end()->get('/qwertyuiop')->with('response')->begin()->isStatusCode(404)->end();
示例7: sfTestFunctional
<?php
include sfConfig::get('sf_test_dir') . '/bootstrap/functional.php';
$browser = new sfTestFunctional(new sfBrowser());
$config = sfConfig::get('app_cacophony');
$browser->info('Twitter Connect')->get('/oauth/connect/twitter')->with('request')->begin()->isParameter('module', 'sfCacophonyConsumer')->isParameter('action', 'connect')->isParameter('provider', 'twitter')->end()->with('response')->begin()->isStatusCode(302)->end();
$response = $browser->getResponse();
$browser->test()->like($response->getHttpHeader('Location'), '@' . $config['providers']['twitter']['authorize_url'] . '@', 'Connect redirects to correct URL');
//$browser->info(parse_url($response->getHttpHeader('Location'), PHP_URL_QUERY));
$browser->info('Twitter Callback')->get('/oauth/callback/twitter?oauth_token=1234&oauth_verifier=5678')->with('request')->begin()->isParameter('module', 'sfCacophonyConsumer')->isParameter('action', 'callback')->isParameter('provider', 'twitter')->isParameter('oauth_token', '1234')->isParameter('oauth_verifier', '5678')->end()->with('response')->begin()->isStatusCode(302)->end()->with('user')->begin()->isFlash('error', 'Failed to retrieve access token: Invalid auth/bad request (got a 401, expected HTTP/1.1 20X or a redirect)')->end();
$browser->info('Vimeo Connect')->get('/oauth/connect/vimeo')->with('request')->begin()->isParameter('module', 'sfCacophonyConsumer')->isParameter('action', 'connect')->isParameter('provider', 'vimeo')->end()->with('response')->begin()->isStatusCode(302)->end();
$response = $browser->getResponse();
$browser->test()->like($response->getHttpHeader('Location'), '@' . $config['providers']['vimeo']['authorize_url'] . '@', 'Connect redirects to correct URL');
//$browser->info(parse_url($response->getHttpHeader('Location'), PHP_URL_QUERY));
$browser->info('Vimeo Callback')->get('/oauth/callback/vimeo?oauth_token=1234&oauth_verifier=5678')->with('request')->begin()->isParameter('module', 'sfCacophonyConsumer')->isParameter('action', 'callback')->isParameter('provider', 'vimeo')->isParameter('oauth_token', '1234')->isParameter('oauth_verifier', '5678')->end()->with('response')->begin()->isStatusCode(302)->end()->with('user')->begin()->isFlash('error', 'Failed to retrieve access token: Invalid auth/bad request (got a 401, expected HTTP/1.1 20X or a redirect)')->end();
$browser->info('Facebook Connect')->get('/oauth/connect/facebook')->with('request')->begin()->isParameter('module', 'sfCacophonyConsumer')->isParameter('action', 'connect')->isParameter('provider', 'facebook')->end()->with('response')->begin()->isStatusCode(302)->end();
$response = $browser->getResponse();
$browser->test()->like($response->getHttpHeader('Location'), '@' . $config['providers']['facebook']['authorize_url'] . '@', 'Connect redirects to correct URL');
//$browser->info(parse_url($response->getHttpHeader('Location'), PHP_URL_QUERY));
parse_str(parse_url(urldecode($response->getHttpHeader('Location')), PHP_URL_QUERY), $query_string);
$browser->info('Facebook Callback')->get(sprintf('/oauth/callback/facebook?code=1234&state=%s', $query_string['state']))->with('request')->begin()->isParameter('module', 'sfCacophonyConsumer')->isParameter('action', 'callback')->isParameter('provider', 'facebook')->isParameter('code', '1234')->isParameter('state', $query_string['state'])->end()->with('response')->begin()->isStatusCode(302)->end()->with('user')->begin()->isFlash('error', 'Failed to retrieve access token: ')->end();
示例8: dirname
<?php
include dirname(__FILE__) . '/../../bootstrap/doctrine.php';
$browser = new sfTestFunctional(new sfBrowser());
$browser->info('1. Active user autrhorization test')->get('/')->with('user')->isAuthenticated(false)->info(' 1.1 Login with activated & wrong pass account')->get('/login')->with('request')->begin()->isParameter('module', 'sfObjectGuardAuth')->isParameter('action', 'login')->end()->with('response')->begin()->isStatusCode(200)->checkElement('h1', 'Enter to site')->checkForm('sfObjectGuardLoginForm')->checkElement('form input[type=submit]', 1)->end()->info(' 1.2 Submitted login form with wrong pass')->click('form input[type=submit]', array('login' => array('email' => 'ever.zet@gmail.com', 'password' => 'test_PaasSS')))->with('form')->begin()->hasErrors(true)->end()->with('user')->isAuthenticated(false)->info(' 1.3 Login with activated account')->get('/login')->with('request')->begin()->isParameter('module', 'sfObjectGuardAuth')->isParameter('action', 'login')->end()->with('response')->begin()->isStatusCode(200)->checkElement('h1', 'Enter to site')->checkForm('sfObjectGuardLoginForm')->checkElement('form input[type=submit]', 1)->end()->info(' 1.4 Submitted login form')->click('form input[type=submit]', array('login' => array('email' => 'ever.zet@gmail.com', 'password' => 'test_PaSS')))->with('form')->begin()->hasErrors(false)->end()->with('response')->isRedirected()->followRedirect()->with('user')->isAuthenticated(true)->info('2. Active user password change')->get('/user/password')->with('request')->begin()->isParameter('module', 'sfObjectGuardAuth')->isParameter('action', 'password')->end()->with('response')->begin()->isStatusCode(200)->checkForm('sfObjectGuardPasswordForm')->checkElement('form input[type=submit]', 1)->end()->info(' 2.2 Submitted password form')->click('form input[type=submit]', array('password' => array('password' => $newPass = 'n3w_PASsS')))->with('form')->begin()->hasErrors(false)->end()->with('response')->isRedirected()->followRedirect()->info(' 2.3 Logout user')->get('/logout')->with('request')->begin()->isParameter('module', 'sfObjectGuardAuth')->isParameter('action', 'logout')->end()->with('response')->isRedirected()->followRedirect()->with('user')->isAuthenticated(false)->info(' 2.4 Login with changed password')->get('/login')->with('request')->begin()->isParameter('module', 'sfObjectGuardAuth')->isParameter('action', 'login')->end()->click('form input[type=submit]', array('login' => array('email' => 'ever.zet@gmail.com', 'password' => $newPass)))->with('form')->begin()->hasErrors(false)->end()->with('response')->isRedirected()->followRedirect()->with('user')->isAuthenticated(true)->info('3. Non-active user autrhorization test')->get('/')->info(' 3.1 Logout user')->get('/logout')->with('request')->begin()->isParameter('module', 'sfObjectGuardAuth')->isParameter('action', 'logout')->end()->with('response')->isRedirected()->followRedirect()->with('user')->isAuthenticated(false)->info(' 3.2 Login with non-active account')->get('/login')->with('request')->begin()->isParameter('module', 'sfObjectGuardAuth')->isParameter('action', 'login')->end()->with('response')->begin()->isStatusCode(200)->checkElement('h1', 'Enter to site')->checkForm('sfObjectGuardLoginForm')->checkElement('form input[type=submit]', 1)->end()->info(' 3.3 Submitted login form')->click('form input[type=submit]', array('login' => array('email' => 'everzet@gmail.com', 'password' => 'tesPasas123sa')))->with('form')->begin()->hasErrors(true)->end()->with('user')->isAuthenticated(false);
示例9: dirname
<?php
$app = 'no_theme';
require dirname(__FILE__) . '/../bootstrap/functional.php';
// Test for themeing being disabled
$browser = new sfTestFunctional(new sfBrowser());
$browser->info('1 - Goto the homepage of the no_theme app where theming is disabled')->get('/')->with('response')->begin()->isStatusCode(200)->info(' 1.1 - The "No theme" layout should be used')->checkElement('h1', '/No theme/')->end();
示例10: dirname
<?php
include dirname(__FILE__) . '/../../bootstrap/functional.php';
$browser = new sfTestFunctional(new sfBrowser(), new lime_test(null, new lime_output_color()));
$params = array('admin_user' => array());
$browser->info('0. Login')->get('/default/login')->click('ログイン', array('admin_user' => array('username' => 'admin', 'password' => 'password')))->isStatusCode(302)->info('1. When an admin user tries to change the SNS configuration. (ref. #3488)')->info('A category is not selected, admin user can change the general configuration.')->get('/sns/config')->click('設定変更')->isStatusCode(302)->info('A general category is selected, admin user can change the general configuration.')->get('/sns/config/category/general')->click('設定変更')->isStatusCode(302)->info('An authentication category is selected, admin user can change the authentication configuration.')->get('/sns/config/category/authentication')->click('設定変更')->isStatusCode(302)->info('A mobile category is selected, admin user can change the mobile configuration.')->get('/sns/config/category/mobile')->click('設定変更')->isStatusCode(302)->info('A policy category is selected, admin user can change the policy configuration.')->get('/sns/config/category/policy')->click('設定変更')->isStatusCode(302)->info('/sns/config - CSRF')->post('/sns/config')->checkCSRF()->info('/sns/config/category/external_login_page - CSRF')->post('/sns/config/category/external_login_page')->checkCSRF()->info('/sns/config/category/authentication - CSRF')->post('/sns/config/category/authentication')->checkCSRF()->info('/sns/config/category/mobile - CSRF')->post('/sns/config/category/mobile')->checkCSRF()->info('/sns/config/category/policy - CSRF')->post('/sns/config/category/policy')->checkCSRF()->info('/sns/config/category/api_keys - CSRF')->post('/sns/config/category/api_keys')->checkCSRF()->info('/sns/term - CSRF')->post('/sns/term')->checkCSRF()->info('/sns/cache - CSRF')->post('/sns/cache')->checkCSRF()->info('/sns/richTextarea - CSRF')->post('/sns/richTextarea')->checkCSRF()->info('/sns/changeRichTextareaButtonOrder - CSRF')->setHttpHeader('X_REQUESTED_WITH', 'XMLHttpRequest')->post('/sns/changeRichTextareaButtonOrder')->checkCSRF();
示例11: dirname
<?php
include dirname(__FILE__) . '/../../bootstrap/functional.php';
$browser = new sfTestFunctional(new sfBrowser());
$browser->get('/job/index')->with('request')->begin()->isParameter('module', 'job')->isParameter('action', 'index')->end()->with('response')->begin()->isStatusCode(200)->checkElement('body', '!/This is a temporary page/')->end();
$browser->setHttpHeader('ACCEPT_LANGUAGE', 'fr_FR,fr,en;q=0.7');
$browser->info('6 - User culture')->restart()->info(' 6.1 - For the first request, symfony guesses the best culture')->get('/')->with('response')->isRedirected()->followRedirect()->with('user')->isCulture('fr')->info(' 6.2 - Available cultures are en and fr')->get('/it/')->with('response')->isStatusCode(404);
$browser->setHttpHeader('ACCEPT_LANGUAGE', 'en,fr;q=0.7');
$browser->info(' 6.3 - The culture guessing is only for the first request')->get('/')->with('response')->isRedirected()->followRedirect()->with('user')->isCulture('fr');
示例12: dirname
<?php
require dirname(__FILE__) . '/../bootstrap/functional.php';
// Test the forwarding from module to module
$browser = new sfTestFunctional(new sfBrowser());
/*
* This addresses an issue where if fwd'ed from one action to another with
* the same theme, the manager sees that the same theme is being loaded
* and stops executing the "switch theme". This is correct for stylesheets
* and javascripts, avoiding extra work, but the layout still needs to be
* set for the new module/action
*/
$browser->info('1 - Surf to an action that forwards to another action with the same theme')->get('/manager/forward_to_same_theme')->with('request')->begin()->isParameter('module', 'manager')->isParameter('action', 'forwardToSameTheme')->end()->isForwardedTo('manager', 'otherAction')->with('response')->begin()->isStatusCode(200)->info(' 1.1 - The forwarded action has the correct layout')->checkElement('h1', '/Plugin Test Layout/')->end();
示例13: dirname
<?php
include dirname(__FILE__) . '/../../bootstrap/functional.php';
$browser = new sfTestFunctional(new sfBrowser());
$browser->info('1.1 - The login page: session Module')->get('/')->info(' 2.1 - The login page has a clickable sign up link')->click('sign up', array(), array('position' => 1))->with('request')->begin()->isParameter('module', 'register')->isParameter('action', 'new')->end();
示例14: dirname
<?php
$executeLoader = false;
include dirname(__FILE__) . '/../../bootstrap/database.php';
include dirname(__FILE__) . '/../../bootstrap/functional.php';
$browser = new sfTestFunctional(new sfBrowser(), new lime_test(null, new lime_output_color()));
$params = array('admin_user' => array());
$browser->setTester('propel', 'sfTesterPropel');
$browser->info('0. Login')->get('/default/login')->click('ログイン', array('admin_user' => array('username' => 'admin', 'password' => 'password')))->isStatusCode(302)->info('1. You can add and sort home gadget')->get('/design/gadget/type/home')->info('Add gadgets to all areas')->click('設定変更', array('new' => array('top' => array('memberImageBox'), 'sideMenu' => array('memberImageBox'), 'contents' => array('memberImageBox'), 'bottom' => array('memberImageBox'))))->with('propel')->begin()->check('Gadget', array('type' => 'top'), 3)->check('Gadget', array('type' => 'sideMenu'), 4)->check('Gadget', array('type' => 'contents'), 1)->check('Gadget', array('type' => 'bottom'), 1)->end()->get('/design/gadget/type/home')->info('Sort some gadgets')->click('設定変更', array('gadget' => array('top' => array(8, 2, 1), 'sideMenu' => array(9, 4, 5, 3))))->with('propel')->begin()->check('Gadget', array('id' => '8', 'sort_order' => 10), true)->check('Gadget', array('id' => '2', 'sort_order' => 20), true)->check('Gadget', array('id' => '1', 'sort_order' => 30), true)->check('Gadget', array('id' => '9', 'sort_order' => 10), true)->check('Gadget', array('id' => '4', 'sort_order' => 20), true)->check('Gadget', array('id' => '5', 'sort_order' => 30), true)->check('Gadget', array('id' => '3', 'sort_order' => 40), true)->end()->info('2. You can add login gadget')->get('/design/gadget/type/login')->info('Add gadgets to all areas')->click('設定変更', array('new' => array('loginTop' => array('loginForm'), 'loginSideMenu' => array('loginForm'), 'loginContents' => array('loginForm'), 'loginBottom' => array('loginForm'))))->with('propel')->begin()->check('Gadget', array('type' => 'loginTop'), 1)->check('Gadget', array('type' => 'loginSideMenu'), 1)->check('Gadget', array('type' => 'loginContents'), 1)->check('Gadget', array('type' => 'loginBottom'), 1)->end()->info('3. You can add and sort side banner gadget')->get('/design/gadget/type/sideBanner')->info('Add gadgets to all areas')->click('設定変更', array('new' => array('sideBannerContents' => array('languageSelecterBox'))))->with('propel')->begin()->check('Gadget', array('type' => 'sideBannerContents'), 2)->end()->get('/design/gadget/type/sideBanner')->info('Sort some gadgets')->click('設定変更', array('gadget' => array('sideBannerContents' => array(16, 6))))->with('propel')->begin()->check('Gadget', array('id' => '16', 'sort_order' => 10), true)->check('Gadget', array('id' => '6', 'sort_order' => 20), true)->end()->info('4. You can add and sort mobile home gadget')->get('/design/gadget/type/mobileHome')->info('Add gadgets to all areas')->click('設定変更', array('new' => array('mobileTop' => array('informationBox'), 'mobileContents' => array('informationBox'), 'mobileBottom' => array('informationBox'))))->with('propel')->begin()->check('Gadget', array('type' => 'mobileTop'), 2)->check('Gadget', array('type' => 'mobileContents'), 1)->check('Gadget', array('type' => 'mobileBottom'), 1)->end()->get('/design/gadget/type/mobileHome')->info('Sort some gadgets')->click('設定変更', array('gadget' => array('mobileTop' => array(17, 7))))->with('propel')->begin()->check('Gadget', array('id' => '17', 'sort_order' => 10), true)->check('Gadget', array('id' => '7', 'sort_order' => 20), true)->end();
示例15: dirname
<?php
require dirname(__FILE__) . '/../bootstrap/functional.php';
// tests the Actions extension class
/*
* We're not testing here to see that everything is perfect and that the
* correct themes are loaded. That will be done elsewhere. We just want
* to make sure that the extended methods in the Actions class work
*/
$browser = new sfTestFunctional(new sfBrowser());
$browser->info('1 - Test the extended functions on the actiosn class')->info(' 1.1 - Test the ->loadTheme() function')->get('/themes/test_theme')->with('response')->begin()->isStatusCode(200)->checkElement('h1', '/Plugin Test Layout/')->end()->info(' 1.2 - Test the ->loadDefaultTheme function')->get('/set_default_theme')->with('response')->begin()->isStatusCode(200)->checkElement('h1', '/Application Test Layout/')->end();