本文整理匯總了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);
}
示例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);
}
示例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);
}
示例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