mirror of
https://github.com/flarum/framework.git
synced 2024-11-23 10:50:50 +08:00
[proposal] cameCase in the test names
Sorry :)
This commit is contained in:
parent
bc2609dff5
commit
bcfda529ab
|
@ -20,7 +20,7 @@ class DiscussionRepositoryTest extends \Codeception\TestCase\Test
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @test */
|
/** @test */
|
||||||
public function it_gets_a_discussion_by_id()
|
public function testGetDiscussionByID()
|
||||||
{
|
{
|
||||||
// Given I have a discussion
|
// Given I have a discussion
|
||||||
$discussion = Factory::create('Flarum\Core\Discussions\Discussion');
|
$discussion = Factory::create('Flarum\Core\Discussions\Discussion');
|
||||||
|
@ -36,7 +36,7 @@ class DiscussionRepositoryTest extends \Codeception\TestCase\Test
|
||||||
* @test
|
* @test
|
||||||
* @expectedException Illuminate\Database\Eloquent\ModelNotFoundException
|
* @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
|
// Given I have a discussion
|
||||||
$discussion = Factory::create('Flarum\Core\Discussions\Discussion');
|
$discussion = Factory::create('Flarum\Core\Discussions\Discussion');
|
||||||
|
@ -51,7 +51,7 @@ class DiscussionRepositoryTest extends \Codeception\TestCase\Test
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @test */
|
/** @test */
|
||||||
public function it_saves_a_discussion()
|
public function testSaveDiscussion()
|
||||||
{
|
{
|
||||||
// Given I have a new discussion
|
// Given I have a new discussion
|
||||||
$user = Factory::create('Flarum\Core\Users\User');
|
$user = Factory::create('Flarum\Core\Users\User');
|
||||||
|
@ -68,7 +68,7 @@ class DiscussionRepositoryTest extends \Codeception\TestCase\Test
|
||||||
* @test
|
* @test
|
||||||
* @expectedException Flarum\Core\Support\Exceptions\ValidationFailureException
|
* @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
|
// Given I have a new discussion containing no information
|
||||||
$discussion = new Discussion;
|
$discussion = new Discussion;
|
||||||
|
@ -78,7 +78,7 @@ class DiscussionRepositoryTest extends \Codeception\TestCase\Test
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @test */
|
/** @test */
|
||||||
public function it_deletes_a_discussion()
|
public function testDeleteDiscussion()
|
||||||
{
|
{
|
||||||
// Given I have a discussion
|
// Given I have a discussion
|
||||||
$discussion = Factory::create('Flarum\Core\Discussions\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]);
|
$this->tester->dontSeeRecord('discussions', ['id' => $discussion->id]);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user