events/Tests/Unit/Domain/Model/RegionTest.php

53 lines
983 B
PHP
Raw Normal View History

<?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()
{
parent::setUp();
$this->subject = new \Wrm\Events\Domain\Model\Region();
}
protected function tearDown()
{
parent::tearDown();
}
/**
* @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
);
}
}