From bcfda529ab87e51a817b136a4ac93e7fb1296618 Mon Sep 17 00:00:00 2001 From: Allineer Date: Thu, 22 Jan 2015 01:42:47 +0300 Subject: [PATCH] [proposal] cameCase in the test names Sorry :) --- .../Core/Discussions/DiscussionRepositoryTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/framework/core/tests/integration/Core/Discussions/DiscussionRepositoryTest.php b/framework/core/tests/integration/Core/Discussions/DiscussionRepositoryTest.php index b031b8dfb..14c76ca34 100644 --- a/framework/core/tests/integration/Core/Discussions/DiscussionRepositoryTest.php +++ b/framework/core/tests/integration/Core/Discussions/DiscussionRepositoryTest.php @@ -20,7 +20,7 @@ class DiscussionRepositoryTest extends \Codeception\TestCase\Test } /** @test */ - public function it_gets_a_discussion_by_id() + public function testGetDiscussionByID() { // Given I have a discussion $discussion = Factory::create('Flarum\Core\Discussions\Discussion'); @@ -36,7 +36,7 @@ class DiscussionRepositoryTest extends \Codeception\TestCase\Test * @test * @expectedException Illuminate\Database\Eloquent\ModelNotFoundException */ - public function it_throws_an_exception_when_a_discussion_cannot_be_viewed() + public function testDiscussionCannotBeViewed() { // Given I have a discussion $discussion = Factory::create('Flarum\Core\Discussions\Discussion'); @@ -51,7 +51,7 @@ class DiscussionRepositoryTest extends \Codeception\TestCase\Test } /** @test */ - public function it_saves_a_discussion() + public function testSaveDiscussion() { // Given I have a new discussion $user = Factory::create('Flarum\Core\Users\User'); @@ -68,7 +68,7 @@ class DiscussionRepositoryTest extends \Codeception\TestCase\Test * @test * @expectedException Flarum\Core\Support\Exceptions\ValidationFailureException */ - public function it_will_not_save_an_invalid_discussion() + public function testSaveInvalidDiscussion() { // Given I have a new discussion containing no information $discussion = new Discussion; @@ -78,7 +78,7 @@ class DiscussionRepositoryTest extends \Codeception\TestCase\Test } /** @test */ - public function it_deletes_a_discussion() + public function testDeleteDiscussion() { // Given I have a discussion $discussion = Factory::create('Flarum\Core\Discussions\Discussion'); @@ -90,4 +90,4 @@ class DiscussionRepositoryTest extends \Codeception\TestCase\Test $this->tester->dontSeeRecord('discussions', ['id' => $discussion->id]); } -} \ No newline at end of file +}