Skip to content

Commit 68df9d5

Browse files
committed
PSR2
1 parent 473ea7b commit 68df9d5

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

tests/Feature/SinglePostPageTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
class SinglePostPageTest extends TestCase
1010
{
1111
/** @test */
12-
public function a_post_is_reachable_via_its_filename_slug()
12+
public function isReachableViaItsFilenameSlug()
1313
{
1414
$post = factory('App\Post')->create();
1515

tests/Unit/PostTest.php

+16-16
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
class PostTest extends TestCase
1515
{
1616
/** @test */
17-
public function a_post_can_be_created()
17+
public function aPostCanBeCreated()
1818
{
1919
$post = new Post();
2020

@@ -24,7 +24,7 @@ public function a_post_can_be_created()
2424
}
2525

2626
/** @test */
27-
public function a_post_can_be_saved_and_retrieved()
27+
public function aPostCanBeSavedAndRetrieved()
2828
{
2929
$post = new Post();
3030

@@ -40,39 +40,39 @@ public function a_post_can_be_saved_and_retrieved()
4040
}
4141

4242
/** @test */
43-
public function attributes_can_be_filled()
43+
public function attributesCanBeFilled()
4444
{
4545
$post = new Post(['title' => 'something']);
4646

4747
$this->assertTrue($post->title === 'something');
4848
}
4949

5050
/** @test */
51-
public function it_can_be_made_via_a_factory()
51+
public function itCanBeMadeViaAFactory()
5252
{
5353
$post = factory(Post::class)->make();
5454

5555
$this->assertNotNull($post->title);
5656
}
5757

5858
/** @test */
59-
public function attributes_can_be_overwritten()
59+
public function attributesCanBeOverwritten()
6060
{
6161
$post = factory(Post::class)->make(['title' => 'test']);
6262

6363
$this->assertEquals('test', $post->title);
6464
}
6565

6666
/** @test */
67-
public function many_can_be_made_via_factory()
67+
public function manyCanBeMadeViaFactory()
6868
{
6969
$posts = factory(Post::class, 3)->make();
7070

7171
$this->assertCount(3, $posts);
7272
}
7373

7474
/** @test */
75-
public function it_can_be_created_via_a_factory()
75+
public function itCanBeCreatedViaAFactory()
7676
{
7777
$post = factory(Post::class)->create();
7878

@@ -84,15 +84,15 @@ public function it_can_be_created_via_a_factory()
8484
}
8585

8686
/** @test */
87-
public function it_returns_a_link_to_itself()
87+
public function itReturnsALinkToItself()
8888
{
8989
$post = factory(Post::class)->make();
9090

9191
$this->assertNotNull($post->link());
9292
}
9393

9494
/** @test */
95-
public function only_released_posts_are_returned_from_released_scope()
95+
public function onlyReleasedPostsAreReturnedFromReleasedScope()
9696
{
9797
factory('App\Post')->create(['release_date' => '']);
9898
factory('App\Post')->create(['release_date' => Carbon::tomorrow()]);
@@ -102,15 +102,15 @@ public function only_released_posts_are_returned_from_released_scope()
102102
}
103103

104104
/** @test */
105-
public function it_returns_the_right_instance_classname()
105+
public function itReturnsTheRightInstanceClassname()
106106
{
107107
$post = new Post();
108108
$this->assertTrue('Post' === $post->baseName());
109109
$this->assertTrue('post' === $post->lowerBaseName());
110110
}
111111

112112
/** @test */
113-
public function released_posts_are_sorted_by_release_date()
113+
public function releasedPostsAreSortedByReleaseDate()
114114
{
115115
$postYearAgo = factory('App\Post')->create(['release_date' => Carbon::now()->subYear()]);
116116
$postYesterday = factory('App\Post')->create(['release_date' => Carbon::yesterday()]);
@@ -123,7 +123,7 @@ public function released_posts_are_sorted_by_release_date()
123123
}
124124

125125
/** @test */
126-
public function posts_can_be_found_by_their_slug()
126+
public function postsCanBeFoundByTheirSlug()
127127
{
128128
$post = factory(Post::class)->create();
129129

@@ -133,7 +133,7 @@ public function posts_can_be_found_by_their_slug()
133133
}
134134

135135
/** @test */
136-
public function a_post_can_be_checked_if_it_exists()
136+
public function aPostCanBeCheckedIfItExists()
137137
{
138138
$post1 = factory(Post::class)->create();
139139
$post2 = factory(Post::class)->make();
@@ -143,7 +143,7 @@ public function a_post_can_be_checked_if_it_exists()
143143
}
144144

145145
/** @test */
146-
public function a_view_response_can_be_retrieved_from_an_existing_blade_based_model()
146+
public function aViewResponseCanBeRetrievedFromAnExistingBladeBasedModel()
147147
{
148148
$post1 = factory(Post::class)->create();
149149
$post2 = factory(Post::class)->make();
@@ -153,7 +153,7 @@ public function a_view_response_can_be_retrieved_from_an_existing_blade_based_mo
153153
}
154154

155155
/** @test */
156-
public function a_blade_based_model_is_responsable()
156+
public function aBladeBasedModelIsResponsable()
157157
{
158158
Route::get('test', function () {
159159
return factory(Post::class)->create();
@@ -164,7 +164,7 @@ public function a_blade_based_model_is_responsable()
164164
}
165165

166166
/** @test */
167-
public function a_not_existent_blade_based_model_throws_a_404()
167+
public function aNotExistentBladeBasedModelThrows404()
168168
{
169169
Route::get('test', function () {
170170
return factory(Post::class)->make();

0 commit comments

Comments
 (0)