Social\Form\CommentTest::setUp PHP Method

setUp() protected method

This method is called before a test is executed.
protected setUp ( ) : void
return void
    protected function setUp()
    {
        $this->object = new AddThis();
        $mock = Mockery::mock('Social\\Model\\AddThis');
        $mock->shouldReceive('getWidgets')->once()->andReturn(array(array('name' => 'test', 'identifier' => 'test', 'settings' => 'test', 'custom_string' => '', 'chosen_list' => '')));
        $mock->shouldReceive('getLanguages')->once()->andReturn(array('fr', 'en'));
        $mock->shouldReceive('getConfig')->once()->andReturn(array('profile_id' => '', 'username' => '', 'password' => '', 'show_stats' => true, 'language' => 'en', 'data_ga_property_id' => '', 'data_track_clickback' => '', 'data_track_addressbar' => '', 'config_json' => '', 'widgets' => array()));
        $mock->shouldReceive('getDefaultStyles')->once()->andReturn(array('large_toolbox' => array('src' => '<div class="addthis_toolbox addthis_default_style addthis_32x32_style" %1$s>' . '<a class="addthis_button_facebook"></a><a class="addthis_button_twitter"></a>' . '<a class="addthis_button_email"></a><a class="addthis_button_pinterest_share"></a>' . '<a class="addthis_button_compact"></a><a class="addthis_counter addthis_bubble_style">' . '</a></div>', 'img' => 'toolbox-large.png', 'name' => 'Large Toolbox')));
        $this->object->setModel($mock);
    }