Skip to content

Commit c6f2904

Browse files
authored
Update MetaServiceTest.php
1 parent 7111ce9 commit c6f2904

1 file changed

Lines changed: 17 additions & 32 deletions

File tree

tests/MetaServiceTest.php

Lines changed: 17 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010

1111
class MetaServiceTest extends TestCase
1212
{
13-
/** @test */
14-
public function it_renders_default_tags(): void
13+
public function test_it_renders_default_tags(): void
1514
{
1615
$this->app['config']->set(
1716
[
@@ -34,8 +33,7 @@ public function it_renders_default_tags(): void
3433
);
3534
}
3635

37-
/** @test */
38-
public function it_renders_using_fluent_methods(): void
36+
public function test_it_renders_using_fluent_methods(): void
3937
{
4038
$this->service
4139
->favIcon('/icon.png')
@@ -87,8 +85,7 @@ public function it_renders_using_fluent_methods(): void
8785
);
8886
}
8987

90-
/** @test */
91-
public function it_allows_fetching_of_single_tags(): void
88+
public function test_it_allows_fetching_of_single_tags(): void
9289
{
9390
$this->service::set('canonical', '/users/name');
9491
$this->service::set('description', 'meta description');
@@ -100,8 +97,7 @@ public function it_allows_fetching_of_single_tags(): void
10097
);
10198
}
10299

103-
/** @test */
104-
public function it_registers_and_renders_raw_tags(): void
100+
public function test_it_registers_and_renders_raw_tags(): void
105101
{
106102
$this->service::setRawTag($ping = '<link rel="pingback" href="https://site.com/xmlrpc.php" />');
107103
$this->service::setRawTags(
@@ -118,10 +114,10 @@ public function it_registers_and_renders_raw_tags(): void
118114
$this->assertRenders(implode(PHP_EOL, [$ping, $alternate, $next]));
119115
}
120116

121-
/** @test
117+
/**
122118
* @throws \Exception
123119
*/
124-
public function it_can_fetch_all_tags(): void
120+
public function test_it_can_fetch_all_tags(): void
125121
{
126122
$this->service
127123
->set('canonical', '/users/name')
@@ -144,8 +140,7 @@ public function it_can_fetch_all_tags(): void
144140
self::assertEquals('custom', $tags['property:custom']);
145141
}
146142

147-
/** @test */
148-
public function it_can_forget_tags(): void
143+
public function test_it_can_forget_tags(): void
149144
{
150145
$this->service
151146
->set('canonical', '/users/name')
@@ -159,8 +154,7 @@ public function it_can_forget_tags(): void
159154
self::assertEmpty($this->service->tags());
160155
}
161156

162-
/** @test */
163-
public function it_can_set_tags_dynamically()
157+
public function test_it_can_set_tags_dynamically()
164158
{
165159
$this->service
166160
->canonical('/users/create')
@@ -175,55 +169,48 @@ public function it_can_set_tags_dynamically()
175169
);
176170
}
177171

178-
/** @test */
179-
public function it_can_render_tags_using_the_to_html_method(): void
172+
public function test_it_can_render_tags_using_the_to_html_method(): void
180173
{
181174
$this->service::set('canonical', '/users');
182175

183176
self::assertStringContainsString('<link rel="canonical" href="/users" />', $this->service->toHtml());
184177
}
185178

186-
/** @test */
187-
public function it_can_determine_tags_dynamically(): void
179+
public function test_it_can_determine_tags_dynamically(): void
188180
{
189181
$this->service::set('canonical', '/users');
190182

191183
self::assertEquals('/users', $this->service->canonical);
192184
}
193185

194-
/** @test */
195-
public function it_get_all_tags_when_calling_with_parameters(): void
186+
public function test_it_get_all_tags_when_calling_with_parameters(): void
196187
{
197188
$this->service::set('canonical', '/users');
198189
$this->service::set('title', 'meta title');
199190

200191
self::assertInstanceOf(Collection::class, $this->service->get());
201192
}
202193

203-
/** @test */
204-
public function it_get_all_tags_when_no_standard_tags_have_been_set(): void
194+
public function test_it_get_all_tags_when_no_standard_tags_have_been_set(): void
205195
{
206196
$this->service::setRawTag('<tag />');
207197

208198
self::assertNotEmpty($this->service->tags());
209199
}
210200

211-
/** @test */
212-
public function it_gets_all_tags_when_no_raw_tags_have_been_set(): void
201+
public function test_it_gets_all_tags_when_no_raw_tags_have_been_set(): void
213202
{
214203
$this->service::set('canonical', '/users');
215204

216205
self::assertTrue(isset($this->service->tags()['canonical']));
217206
}
218207

219-
/** @test */
220-
public function it_gets_all_tags_when_none_are_present(): void
208+
public function test_it_gets_all_tags_when_none_are_present(): void
221209
{
222210
self::assertIsArray($this->service->tags());
223211
}
224212

225-
/** @test */
226-
public function it_handles_calls_to_tags_when_no_tags_are_set(): void
213+
public function test_it_handles_calls_to_tags_when_no_tags_are_set(): void
227214
{
228215
$this->service::resetTags();
229216

@@ -234,8 +221,7 @@ public function it_handles_calls_to_tags_when_no_tags_are_set(): void
234221
self::assertCount(1, $this->service->tags());
235222
}
236223

237-
/** @test */
238-
public function it_handles_calls_to_tags_when_no_raw_tags_are_set(): void
224+
public function test_it_handles_calls_to_tags_when_no_raw_tags_are_set(): void
239225
{
240226
$this->service::resetTags();
241227

@@ -246,8 +232,7 @@ public function it_handles_calls_to_tags_when_no_raw_tags_are_set(): void
246232
self::assertCount(1, $this->service->tags());
247233
}
248234

249-
/** @test */
250-
public function it_handles_calls_to_set_tags_when_no_tags_are_set(): void
235+
public function test_it_handles_calls_to_set_tags_when_no_tags_are_set(): void
251236
{
252237
$this->service::resetTags();
253238

0 commit comments

Comments
 (0)