mirror of
https://github.com/werkraum-media/events.git
synced 2024-11-24 21:16:10 +01:00
Daniel Siepmann
cb50981a2b
* Add dependency. * Remove empty tearDown() methods. * Fix signature of setUp() to be compatible with recent phpunit. * Temporary fix syntax issues in test files Relates: #8092
47 lines
914 B
PHP
47 lines
914 B
PHP
<?php
|
|
|
|
namespace Wrm\Events\Tests\Unit\Domain\Model;
|
|
|
|
/**
|
|
* Test case.
|
|
*
|
|
* @author Dirk Koritnik <koritnik@werkraum-media.de>
|
|
*/
|
|
class RegionTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
|
|
{
|
|
/**
|
|
* @var \Wrm\Events\Domain\Model\Region
|
|
*/
|
|
protected $subject = null;
|
|
|
|
protected function setUp(): void
|
|
{
|
|
parent::setUp();
|
|
$this->subject = new \Wrm\Events\Domain\Model\Region();
|
|
}
|
|
|
|
/**
|
|
* @test
|
|
*/
|
|
public function getTitleReturnsInitialValueForString()
|
|
{
|
|
self::assertSame(
|
|
'',
|
|
$this->subject->getTitle()
|
|
);
|
|
}
|
|
|
|
/**
|
|
* @test
|
|
*/
|
|
public function setTitleForStringSetsTitle()
|
|
{
|
|
$this->subject->setTitle('Conceived at T3CON10');
|
|
|
|
self::assertAttributeEquals(
|
|
'Conceived at T3CON10',
|
|
'title',
|
|
$this->subject
|
|
);
|
|
}
|
|
}
|