*/ class TermsTest extends UnitTestCase { /** * @var \Meramo\Chatbotui\Domain\Model\Terms */ protected $subject; protected function setUp() { parent::setUp(); $this->subject = new \Meramo\Chatbotui\Domain\Model\Terms(); } protected function tearDown() { parent::tearDown(); } /** * @test */ public function getTypeReturnsInitialValueForType() { self::assertEquals( null, $this->subject->getType() ); } /** * @test */ public function setTypeForTypeSetsType() { $typeFixture = new \Meramo\Chatbotui\Domain\Model\Type(); $this->subject->setType($typeFixture); self::assertAttributeEquals( $typeFixture, 'type', $this->subject ); } /** * @test */ public function getCategoryReturnsInitialValueForCategory() { self::assertEquals( null, $this->subject->getCategory() ); } /** * @test */ public function setCategoryForCategorySetsCategory() { $categoryFixture = new \Meramo\Chatbotui\Domain\Model\Category(); $this->subject->setCategory($categoryFixture); self::assertAttributeEquals( $categoryFixture, 'category', $this->subject ); } /** * @test */ public function getUrlReturnsInitialValueForUrl() { self::assertEquals( null, $this->subject->getUrl() ); } /** * @test */ public function setUrlForUrlSetsUrl() { $urlFixture = new \Meramo\Chatbotui\Domain\Model\Url(); $this->subject->setUrl($urlFixture); self::assertAttributeEquals( $urlFixture, 'url', $this->subject ); } }