public function test_when_launchkey_meta_data_and_no_password_paired_without_password_template_shown_with_the_correct_context() { $this->user->ID = 1; $this->user->user_pass = null; $this->client->launchkey_personal_options($this->user); Phake::verify($this->template)->render_template('personal-options/paired-without-password', Phake::capture($actual_context)); Phake::verify($this->facade)->_echo('Rendered [personal-options/paired-without-password]'); $expected_context = array('app_display_name' => 'App Display Name'); $this->assertEquals($expected_context, $actual_context); }
public function test_launchkey_personal_options_uses_get_site_option_when_multi_site() { $client = new LaunchKey_WP_User_Profile($this->facade, $this->template, $this->launguage_domain, true); $client->launchkey_personal_options($this->user); Phake::verify($this->facade)->get_site_option(LaunchKey_WP_Admin::OPTION_KEY); }