@@ -240,7 +240,7 @@ public function testMethodCacheIsAutoTaggedFromResponse(): void
240240 $ this ->assertNotEmpty ($ this ->cacheInterceptor ::getHits ());
241241 $ this ->assertEmpty ($ this ->cacheInterceptor ::getMisses ());
242242
243- $ tagToInvalidate = str_replace ('\\' , '. ' , ResponseStub::class) . '.getId . ' . ResponseStub::ID ;
243+ $ tagToInvalidate = str_replace ('\\' , '. ' , ResponseStub::class) . '.id . ' . ResponseStub::ID ;
244244
245245 $ this ->cacheHandlerMock ->invalidateTags ('default ' , [$ tagToInvalidate ]);
246246
@@ -784,13 +784,13 @@ public function testRequestAndTagAttribute(): void
784784 $ this ->assertEquals (new ResponseStub (), $ result );
785785 $ this ->assertNotEmpty (CacheInterceptor::getHits ());
786786 $ this ->assertEquals ([
787- 'OpenClassrooms.ServiceProxy.Tests.Double.Stub.Cache.ResponseStub.getId .12 ' ,
788- 'OpenClassrooms.ServiceProxy.Tests.Double.Stub.Cache.ResponseStub.getName .test ' ,
789- 'OpenClassrooms.ServiceProxy.Tests.Double.Stub.Cache.ResponseStub.getUserId .1111 ' ,
790- 'OpenClassrooms.ServiceProxy.Tests.Double.Stub.Cache.ResponseStub.age.10 ' ,
791- 'prefix.paris ' ,
792- 'OpenClassrooms.ServiceProxy.Tests.Double.Stub.Cache.ResponseStub.id.1 ' ,
793- ], CacheInterceptor::getHits ()[0 ]['tags ' ]);
787+ 'OpenClassrooms.ServiceProxy.Tests.Double.Stub.Cache.ResponseStub.id .12 ' ,
788+ 'OpenClassrooms.ServiceProxy.Tests.Double.Stub.Cache.ResponseStub.name .test ' ,
789+ 'OpenClassrooms.ServiceProxy.Tests.Double.Stub.Cache.ResponseStub.userid .1111 ' ,
790+ 'OpenClassrooms.ServiceProxy.Tests.Double.Stub.Cache.ResponseStub.age.10 ' ,
791+ 'prefix.city .paris ' ,
792+ 'OpenClassrooms.ServiceProxy.Tests.Double.Stub.Cache.ResponseStub.id.1 ' ,
793+ ], CacheInterceptor::getHits ()[0 ]['tags ' ]);
794794 $ this ->assertEmpty (CacheInterceptor::getMisses ());
795795 }
796796}
0 commit comments