Social\Model\AddThisTest::testGetDefaultStyles PHP Method

testGetDefaultStyles() public method

Test
public testGetDefaultStyles ( ) : void
return void
    public function testGetDefaultStyles()
    {
        $result = $this->object->getDefaultStyles();
        $this->assertInternalType('array', $result);
        $this->assertArrayHasKey('large_toolbox', $result);
        $this->assertArrayHasKey('small_toolbox', $result);
        $this->assertArrayHasKey('fb_tw_p1_sc', $result);
        $this->assertArrayHasKey('button', $result);
        $this->assertArrayHasKey('custom_string', $result);
        foreach ($result as $key => $value) {
            if ($key != 'custom_string') {
                $this->assertArrayHasKey('src', $value);
                $this->assertArrayHasKey('img', $value);
                $this->assertArrayHasKey('name', $value);
            } else {
                $this->assertArrayHasKey('name', $value);
            }
        }
    }