| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?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 CategoryTest extends UnitTestCase
- {
- /**
- * @var \Meramo\Chatbotui\Domain\Model\Category
- */
- protected $subject;
- protected function setUp()
- {
- parent::setUp();
- $this->subject = new \Meramo\Chatbotui\Domain\Model\Category();
- }
- protected function tearDown()
- {
- parent::tearDown();
- }
- /**
- * @test
- */
- public function getCategoryReturnsInitialValueForString()
- {
- self::assertSame(
- '',
- $this->subject->getCategory()
- );
- }
- /**
- * @test
- */
- public function setCategoryForStringSetsCategory()
- {
- $this->subject->setCategory('Conceived at T3CON10');
- self::assertAttributeEquals(
- 'Conceived at T3CON10',
- 'category',
- $this->subject
- );
- }
- }
|