public function getGetStoreName() { $this->assertNull($this->entity->getStoreName()); $expectedValue = 'test'; $website = $this->getMock('OroCRM\\Bundle\\MagentoBundle\\Entity\\Store'); $website->expects($this->once())->method('getName')->will($this->returnValue($expectedValue)); $this->assertEquals($expectedValue, $website->getStoreName()); }