| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- <?php
- declare(strict_types=1);
- namespace Meramo\Chatbotui\Tests\Unit\Domain\Model;
- use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
- /**
- * Test case
- *
- * @author Meramo Developer <develop@meramo.de>
- */
- 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
- );
- }
- }
|