14
14
class PostTest extends TestCase
15
15
{
16
16
/** @test */
17
- public function a_post_can_be_created ()
17
+ public function aPostCanBeCreated ()
18
18
{
19
19
$ post = new Post ();
20
20
@@ -24,7 +24,7 @@ public function a_post_can_be_created()
24
24
}
25
25
26
26
/** @test */
27
- public function a_post_can_be_saved_and_retrieved ()
27
+ public function aPostCanBeSavedAndRetrieved ()
28
28
{
29
29
$ post = new Post ();
30
30
@@ -40,39 +40,39 @@ public function a_post_can_be_saved_and_retrieved()
40
40
}
41
41
42
42
/** @test */
43
- public function attributes_can_be_filled ()
43
+ public function attributesCanBeFilled ()
44
44
{
45
45
$ post = new Post (['title ' => 'something ' ]);
46
46
47
47
$ this ->assertTrue ($ post ->title === 'something ' );
48
48
}
49
49
50
50
/** @test */
51
- public function it_can_be_made_via_a_factory ()
51
+ public function itCanBeMadeViaAFactory ()
52
52
{
53
53
$ post = factory (Post::class)->make ();
54
54
55
55
$ this ->assertNotNull ($ post ->title );
56
56
}
57
57
58
58
/** @test */
59
- public function attributes_can_be_overwritten ()
59
+ public function attributesCanBeOverwritten ()
60
60
{
61
61
$ post = factory (Post::class)->make (['title ' => 'test ' ]);
62
62
63
63
$ this ->assertEquals ('test ' , $ post ->title );
64
64
}
65
65
66
66
/** @test */
67
- public function many_can_be_made_via_factory ()
67
+ public function manyCanBeMadeViaFactory ()
68
68
{
69
69
$ posts = factory (Post::class, 3 )->make ();
70
70
71
71
$ this ->assertCount (3 , $ posts );
72
72
}
73
73
74
74
/** @test */
75
- public function it_can_be_created_via_a_factory ()
75
+ public function itCanBeCreatedViaAFactory ()
76
76
{
77
77
$ post = factory (Post::class)->create ();
78
78
@@ -84,15 +84,15 @@ public function it_can_be_created_via_a_factory()
84
84
}
85
85
86
86
/** @test */
87
- public function it_returns_a_link_to_itself ()
87
+ public function itReturnsALinkToItself ()
88
88
{
89
89
$ post = factory (Post::class)->make ();
90
90
91
91
$ this ->assertNotNull ($ post ->link ());
92
92
}
93
93
94
94
/** @test */
95
- public function only_released_posts_are_returned_from_released_scope ()
95
+ public function onlyReleasedPostsAreReturnedFromReleasedScope ()
96
96
{
97
97
factory ('App\Post ' )->create (['release_date ' => '' ]);
98
98
factory ('App\Post ' )->create (['release_date ' => Carbon::tomorrow ()]);
@@ -102,15 +102,15 @@ public function only_released_posts_are_returned_from_released_scope()
102
102
}
103
103
104
104
/** @test */
105
- public function it_returns_the_right_instance_classname ()
105
+ public function itReturnsTheRightInstanceClassname ()
106
106
{
107
107
$ post = new Post ();
108
108
$ this ->assertTrue ('Post ' === $ post ->baseName ());
109
109
$ this ->assertTrue ('post ' === $ post ->lowerBaseName ());
110
110
}
111
111
112
112
/** @test */
113
- public function released_posts_are_sorted_by_release_date ()
113
+ public function releasedPostsAreSortedByReleaseDate ()
114
114
{
115
115
$ postYearAgo = factory ('App\Post ' )->create (['release_date ' => Carbon::now ()->subYear ()]);
116
116
$ postYesterday = factory ('App\Post ' )->create (['release_date ' => Carbon::yesterday ()]);
@@ -123,7 +123,7 @@ public function released_posts_are_sorted_by_release_date()
123
123
}
124
124
125
125
/** @test */
126
- public function posts_can_be_found_by_their_slug ()
126
+ public function postsCanBeFoundByTheirSlug ()
127
127
{
128
128
$ post = factory (Post::class)->create ();
129
129
@@ -133,7 +133,7 @@ public function posts_can_be_found_by_their_slug()
133
133
}
134
134
135
135
/** @test */
136
- public function a_post_can_be_checked_if_it_exists ()
136
+ public function aPostCanBeCheckedIfItExists ()
137
137
{
138
138
$ post1 = factory (Post::class)->create ();
139
139
$ post2 = factory (Post::class)->make ();
@@ -143,7 +143,7 @@ public function a_post_can_be_checked_if_it_exists()
143
143
}
144
144
145
145
/** @test */
146
- public function a_view_response_can_be_retrieved_from_an_existing_blade_based_model ()
146
+ public function aViewResponseCanBeRetrievedFromAnExistingBladeBasedModel ()
147
147
{
148
148
$ post1 = factory (Post::class)->create ();
149
149
$ post2 = factory (Post::class)->make ();
@@ -153,7 +153,7 @@ public function a_view_response_can_be_retrieved_from_an_existing_blade_based_mo
153
153
}
154
154
155
155
/** @test */
156
- public function a_blade_based_model_is_responsable ()
156
+ public function aBladeBasedModelIsResponsable ()
157
157
{
158
158
Route::get ('test ' , function () {
159
159
return factory (Post::class)->create ();
@@ -164,7 +164,7 @@ public function a_blade_based_model_is_responsable()
164
164
}
165
165
166
166
/** @test */
167
- public function a_not_existent_blade_based_model_throws_a_404 ()
167
+ public function aNotExistentBladeBasedModelThrows404 ()
168
168
{
169
169
Route::get ('test ' , function () {
170
170
return factory (Post::class)->make ();
0 commit comments