Social\Model\AddThisTest::testAddWidgets PHP Method

testAddWidgets() public method

Test
public testAddWidgets ( ) : void
return void
    public function testAddWidgets()
    {
        $this->configTable->shouldReceive('setValue')->andReturn(true);
        $widgets = array('widget-0' => array('name' => 'blog', 'identifier' => 'blog', 'settings' => 'small_toolbox', 'custom_string' => '', 'chosen_list' => ''), 'widget-1' => array('name' => 'home', 'identifier' => 'home', 'settings' => 'large_toolbox', 'custom_string' => '', 'chosen_list' => ''));
        $result = $this->object->addwidgets($widgets);
        $this->assertTrue($result);
        $result = $this->object->addwidgets($widgets);
        $this->assertTrue($result);
        $result = $this->object->addwidgets($widgets, true);
        $this->assertTrue($result);
    }