Skip to content

Commit

Permalink
add Event UT
Browse files Browse the repository at this point in the history
  • Loading branch information
mamuz committed Sep 7, 2014
1 parent a0e1e56 commit bb82f85
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/MamuzBlogTest/EventManager/EventTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

namespace MamuzBlogTest\EventManager;

use MamuzBlog\EventManager\Event;

class EventTest extends \PHPUnit_Framework_TestCase
{
public function testEventIdentifier()
{
$this->assertSame('mamuz-blog', Event::IDENTIFIER);
}

public function testEventNames()
{
$this->assertSame('createPaginator.pre', Event::PRE_PAGINATION_CREATE);
$this->assertSame('createPaginator.post', Event::POST_PAGINATION_CREATE);
$this->assertSame('findPublishedPost.pre', Event::PRE_FIND_PUBLISHED_POST);
$this->assertSame('findPublishedPost.post', Event::POST_FIND_PUBLISHED_POST);
}
}

0 comments on commit bb82f85

Please sign in to comment.