@@ -16,7 +16,7 @@ public function test_can_set_and_retrieve_values()
16
16
;
17
17
18
18
$ this ->assertEquals ('http://www.google.com ' , $ link ->getHref ());
19
- $ this ->assertContains ('next ' , $ link ->getRel ());
19
+ $ this ->assertContains ('next ' , $ link ->getRels ());
20
20
$ this ->assertArrayHasKey ('me ' , $ link ->getAttributes ());
21
21
$ this ->assertEquals ('you ' , $ link ->getAttributes ()['me ' ]);
22
22
}
@@ -33,7 +33,7 @@ public function test_can_remove_values()
33
33
->withoutRel ('next ' );
34
34
35
35
$ this ->assertEquals ('http://www.google.com ' , $ link ->getHref ());
36
- $ this ->assertFalse (in_array ('next ' , $ link ->getRel ()));
36
+ $ this ->assertFalse (in_array ('next ' , $ link ->getRels ()));
37
37
$ this ->assertFalse (array_key_exists ('me ' , $ link ->getAttributes ()));
38
38
}
39
39
@@ -44,16 +44,16 @@ public function test_multiple_rels()
44
44
->withRel ('next ' )
45
45
->withRel ('reference ' );
46
46
47
- $ this ->assertCount (2 , $ link ->getRel ());
48
- $ this ->assertContains ('next ' , $ link ->getRel ());
49
- $ this ->assertContains ('reference ' , $ link ->getRel ());
47
+ $ this ->assertCount (2 , $ link ->getRels ());
48
+ $ this ->assertContains ('next ' , $ link ->getRels ());
49
+ $ this ->assertContains ('reference ' , $ link ->getRels ());
50
50
}
51
51
52
52
public function test_constructor ()
53
53
{
54
54
$ link = new Link ('next ' , 'http://www.google.com ' );
55
55
56
56
$ this ->assertEquals ('http://www.google.com ' , $ link ->getHref ());
57
- $ this ->assertContains ('next ' , $ link ->getRel ());
57
+ $ this ->assertContains ('next ' , $ link ->getRels ());
58
58
}
59
59
}
0 commit comments