@@ -51,7 +51,7 @@ public function testCantCreateUriTemplateForNonexistentResource() {
5151 $ this ->createFactory ();
5252
5353 // when
54- [$ uri , $ templated ] = $ this ->uriTemplateFactory ->create ($ resource );
54+ [$ uri , $ templated ] = $ this ->uriTemplateFactory ->createFromShortname ($ resource );
5555
5656 // then
5757 self ::assertThat ($ uri , self ::equalTo (null ));
@@ -68,7 +68,7 @@ public function testCreatesNonTemplatedUri() {
6868 $ this ->createFactory ();
6969
7070 // when
71- [$ uri , $ templated ] = $ this ->uriTemplateFactory ->create ($ resource );
71+ [$ uri , $ templated ] = $ this ->uriTemplateFactory ->createFromShortname ($ resource );
7272
7373 // then
7474 self ::assertThat ($ uri , self ::equalTo ('/dummys ' ));
@@ -81,7 +81,7 @@ public function testCreatesTemplatedUriWithIdPathParameter() {
8181 $ this ->createFactory ();
8282
8383 // when
84- [$ uri , $ templated ] = $ this ->uriTemplateFactory ->create ($ resource );
84+ [$ uri , $ templated ] = $ this ->uriTemplateFactory ->createFromShortname ($ resource );
8585
8686 // then
8787 self ::assertThat ($ uri , self ::equalTo ('/dummys{/id} ' ));
@@ -100,7 +100,7 @@ public function testCreatesTemplatedUriWithFilterQueryParameter() {
100100 $ this ->createFactory ();
101101
102102 // when
103- [$ uri , $ templated ] = $ this ->uriTemplateFactory ->create ($ resource );
103+ [$ uri , $ templated ] = $ this ->uriTemplateFactory ->createFromShortname ($ resource );
104104
105105 // then
106106 self ::assertThat ($ uri , self ::equalTo ('/dummys{/id}{?some_filter} ' ));
@@ -114,7 +114,7 @@ public function testCreatesTemplatedUriWithPaginationQueryParameter() {
114114 $ this ->createFactory ();
115115
116116 // when
117- [$ uri , $ templated ] = $ this ->uriTemplateFactory ->create ($ resource );
117+ [$ uri , $ templated ] = $ this ->uriTemplateFactory ->createFromShortname ($ resource );
118118
119119 // then
120120 self ::assertThat ($ uri , self ::equalTo ('/dummys{/id}{?page} ' ));
@@ -132,7 +132,7 @@ public function testCreatesTemplatedUriWithAdvancedPaginationQueryParameters() {
132132 $ this ->createFactory ();
133133
134134 // when
135- [$ uri , $ templated ] = $ this ->uriTemplateFactory ->create ($ resource );
135+ [$ uri , $ templated ] = $ this ->uriTemplateFactory ->createFromShortname ($ resource );
136136
137137 // then
138138 self ::assertThat ($ uri , self ::equalTo ('/dummys{/id}{?page,itemsPerPage,pagination} ' ));
0 commit comments