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


PHP Phake::verifyNoFurtherInteraction方法代码示例

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


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

示例1: test_user_logged_in_does_nothing

 public function test_user_logged_in_does_nothing()
 {
     Phake::when($this->facade)->is_user_logged_in()->thenReturn(false);
     $this->client->launchkey_still_authenticated_heartbeat();
     Phake::verify($this->facade)->is_user_logged_in();
     Phake::verifyNoFurtherInteraction($this->facade);
 }
开发者ID:ThemeSurgeon,项目名称:launchkey-wordpress,代码行数:7,代码来源:class-launchkey-wp-native-client-still-authenticated-heartbeat-test.php

示例2: test_does_nothing_when_user_cannot_manage_options

 public function test_does_nothing_when_user_cannot_manage_options()
 {
     Phake::when($this->facade)->current_user_can('manage_options')->thenReturn(false);
     $this->wizard->wizard_submit_ajax();
     Phake::verify($this->facade)->current_user_can('manage_options');
     Phake::verifyNoFurtherInteraction($this->facade);
 }
开发者ID:anthony-dandrea,项目名称:launchkey-wordpress,代码行数:7,代码来源:class-launchkey-wp-configuration-wizard-submit-ajax-callback-test.php

示例3: test_no_current_user_does_nothing

 public function test_no_current_user_does_nothing()
 {
     Phake::when($this->facade)->wp_get_current_user()->thenReturn(null);
     $this->client->logout();
     Phake::verifyNoInteraction($this->sdk_auth);
     Phake::verifyNoFurtherInteraction($this->facade);
 }
开发者ID:aenglander,项目名称:launchkey-wordpress,代码行数:7,代码来源:class-launchkey-wp-native-client-logout-test.php

示例4: test_launchkey_sso_session_redirects_to_logout_url_and_exits

 public function test_launchkey_sso_session_redirects_to_logout_url_and_exits()
 {
     $this->user->launchkey_sso_session = "Not Null";
     $this->client->logout();
     Phake::inOrder(Phake::verify($this->facade)->wp_redirect(static::LOGOUT_URL), Phake::verify($this->facade)->_exit(Phake::anyParameters()));
     Phake::verifyNoFurtherInteraction($this->facade);
 }
开发者ID:aenglander,项目名称:launchkey-wordpress,代码行数:7,代码来源:class-launchkey-wp-sso-client-logout-test.php

示例5: test_does_nothing_else_when_nonce_is_invalid

 public function test_does_nothing_else_when_nonce_is_invalid()
 {
     $_REQUEST['nonce'] = 'not empty';
     Phake::when($this->facade)->wp_verify_nonce(Phake::anyParameters())->thenReturn(false);
     $this->wizard->verify_configuration_callback();
     Phake::verify($this->facade)->wp_verify_nonce(Phake::anyParameters());
     Phake::verifyNoFurtherInteraction($this->facade);
 }
开发者ID:ThemeSurgeon,项目名称:launchkey-wordpress,代码行数:8,代码来源:class-launchkey-wp-configuration-wizard-verify-configuration-callback-test.php

示例6: test_no_current_user_does_nothing

 public function test_no_current_user_does_nothing()
 {
     Phake::when($this->facade)->wp_get_current_user(Phake::anyParameters())->thenReturn(null);
     $this->client->white_label_pair_callback();
     Phake::verify($this->facade)->wp_get_current_user();
     Phake::verifyNoFurtherInteraction($this->facade);
     Phake::verifyNoInteraction($this->sdk_auth);
 }
开发者ID:aenglander,项目名称:launchkey-wordpress,代码行数:8,代码来源:class-launchkey-wp-native-client-white-label-pair-callback-test.php

示例7: test_does_nothing_but_create_nonce_when_nonce_is_invalid

 public function test_does_nothing_but_create_nonce_when_nonce_is_invalid()
 {
     $_POST['nonce'] = 'not empty';
     Phake::when($this->facade)->wp_verify_nonce(Phake::anyParameters())->thenReturn(false);
     $this->wizard->wizard_submit_ajax();
     Phake::verify($this->facade)->wp_verify_nonce(Phake::anyParameters());
     Phake::verifyNoFurtherInteraction($this->facade);
 }
开发者ID:ThemeSurgeon,项目名称:launchkey-wordpress,代码行数:8,代码来源:class-launchkey-wp-configuration-wizard-submit-ajax-callback-test.php

示例8: testVerifyNoFurtherInteractionPassesStrict

 public function testVerifyNoFurtherInteractionPassesStrict()
 {
     Phake::setClient(Phake::CLIENT_PHPUNIT);
     $mock = Phake::mock('stdClass');
     $assertionCount = self::getCount();
     Phake::verifyNoFurtherInteraction($mock);
     $newAssertionCount = self::getCount();
     $this->assertGreaterThan($assertionCount, $newAssertionCount);
 }
开发者ID:kore,项目名称:Phake,代码行数:9,代码来源:PhakeTest.php

示例9: testPrimaryKeyCachesResult

 public function testPrimaryKeyCachesResult()
 {
     $ids = $this->driver->primaryKey('some_stuff');
     $this->assertEquals(array('some_id', 'stuff_id'), $ids);
     Phake::verifyNoFurtherInteraction($this->pdo);
     $ids = $this->driver->primaryKey('some_stuff');
     $this->assertEquals(array('some_id', 'stuff_id'), $ids);
 }
开发者ID:derptest,项目名称:phpmachinist,代码行数:8,代码来源:SqliteTest.php

示例10:

 public function test_when_token_invalid_and_refresh_token_exists_and_refresh_returns_no_access_token__user_is_logged_out_and_redirected()
 {
     Phake::when($this->facade)->wp_remote_post('https://oauth.launchkey.com/access_token', $this->anything())->thenReturn(array('body' => '{"refresh_token": "New Refresh Token", "expires_in": 9999}'));
     $this->client->launchkey_admin_callback();
     Phake::verify($this->facade)->wp_login_url();
     Phake::inOrder(Phake::verify($this->facade)->wp_logout(), Phake::verify($this->facade)->wp_redirect('LoginURL?loggedout=1'));
     Phake::verifyNoFurtherInteraction($this->facade);
 }
开发者ID:aenglander,项目名称:launchkey-wordpress,代码行数:8,代码来源:class-launchkey-wp-oauth-client-admin-callback-access-token-check-test.php

示例11: unset

 public function test_not_saml_triggered_with_no_username_no_password_and_current_user_with_launchkey_username_and_launchkey_authorized_not_false_does_nothing()
 {
     unset($_REQUEST['SAMLResponse']);
     unset($_REQUEST['SAMLRequest']);
     $this->user->launchkey_username = "Not null";
     $this->user->launchkey_authorized = "true";
     $this->client->authenticate($this->user, null, null);
     Phake::verify($this->facade)->wp_get_current_user();
     Phake::verifyNoFurtherInteraction($this->facade);
 }
开发者ID:aenglander,项目名称:launchkey-wordpress,代码行数:10,代码来源:class-launchkey-wp-sso-client-authenticate-test.php

示例12: test_does_nothing_else_when_user_cannot_manage_options

 public function test_does_nothing_else_when_user_cannot_manage_options()
 {
     Phake::when($this->facade)->current_user_can('manage_options')->thenReturn(false);
     $this->wizard->verify_configuration_callback();
     Phake::verify($this->facade)->current_user_can('manage_options');
     Phake::verifyNoFurtherInteraction($this->facade);
 }
开发者ID:aenglander,项目名称:launchkey-wordpress,代码行数:7,代码来源:class-launchkey-wp-configuration-wizard-verify-configuration-callback-test.php


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