Skip to content

Commit

Permalink
Add first Unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
lochmueller committed Jun 15, 2016
1 parent dae7e0e commit 45cf6b0
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions Tests/Unit/Domain/Model/TagTest.php
@@ -0,0 +1,40 @@
<?php
/**
* TagTest
*/

namespace HDNET\Tagger\Tests\Unit\Domain\Model;

use HDNET\Tagger\Domain\Model\Tag;

/**
* TagTest
*/
class TagTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
{

/**
* @var Tag
*/
protected $fileDomainModelInstance;

/**
* Setup
*
* @return void
*/
protected function setUp()
{
$this->fileDomainModelInstance = new Tag();
}

/**
* @test
*/
public function titleCanBeSet()
{
$title = 'This is the title';
$this->fileDomainModelInstance->setTitle($title);
$this->assertEquals($title, $this->fileDomainModelInstance->getTitle());
}
}

0 comments on commit 45cf6b0

Please sign in to comment.