@@ -51,7 +51,7 @@ public function testCantCreateUriTemplateForNonexistentResource() {
51
51
$ this ->createFactory ();
52
52
53
53
// when
54
- [$ uri , $ templated ] = $ this ->uriTemplateFactory ->create ($ resource );
54
+ [$ uri , $ templated ] = $ this ->uriTemplateFactory ->createFromShortname ($ resource );
55
55
56
56
// then
57
57
self ::assertThat ($ uri , self ::equalTo (null ));
@@ -68,7 +68,7 @@ public function testCreatesNonTemplatedUri() {
68
68
$ this ->createFactory ();
69
69
70
70
// when
71
- [$ uri , $ templated ] = $ this ->uriTemplateFactory ->create ($ resource );
71
+ [$ uri , $ templated ] = $ this ->uriTemplateFactory ->createFromShortname ($ resource );
72
72
73
73
// then
74
74
self ::assertThat ($ uri , self ::equalTo ('/dummys ' ));
@@ -81,7 +81,7 @@ public function testCreatesTemplatedUriWithIdPathParameter() {
81
81
$ this ->createFactory ();
82
82
83
83
// when
84
- [$ uri , $ templated ] = $ this ->uriTemplateFactory ->create ($ resource );
84
+ [$ uri , $ templated ] = $ this ->uriTemplateFactory ->createFromShortname ($ resource );
85
85
86
86
// then
87
87
self ::assertThat ($ uri , self ::equalTo ('/dummys{/id} ' ));
@@ -100,7 +100,7 @@ public function testCreatesTemplatedUriWithFilterQueryParameter() {
100
100
$ this ->createFactory ();
101
101
102
102
// when
103
- [$ uri , $ templated ] = $ this ->uriTemplateFactory ->create ($ resource );
103
+ [$ uri , $ templated ] = $ this ->uriTemplateFactory ->createFromShortname ($ resource );
104
104
105
105
// then
106
106
self ::assertThat ($ uri , self ::equalTo ('/dummys{/id}{?some_filter} ' ));
@@ -114,7 +114,7 @@ public function testCreatesTemplatedUriWithPaginationQueryParameter() {
114
114
$ this ->createFactory ();
115
115
116
116
// when
117
- [$ uri , $ templated ] = $ this ->uriTemplateFactory ->create ($ resource );
117
+ [$ uri , $ templated ] = $ this ->uriTemplateFactory ->createFromShortname ($ resource );
118
118
119
119
// then
120
120
self ::assertThat ($ uri , self ::equalTo ('/dummys{/id}{?page} ' ));
@@ -132,7 +132,7 @@ public function testCreatesTemplatedUriWithAdvancedPaginationQueryParameters() {
132
132
$ this ->createFactory ();
133
133
134
134
// when
135
- [$ uri , $ templated ] = $ this ->uriTemplateFactory ->create ($ resource );
135
+ [$ uri , $ templated ] = $ this ->uriTemplateFactory ->createFromShortname ($ resource );
136
136
137
137
// then
138
138
self ::assertThat ($ uri , self ::equalTo ('/dummys{/id}{?page,itemsPerPage,pagination} ' ));
0 commit comments