@@ -133,7 +133,7 @@ public function testFiltersDisabledEntirelyProducesDifferentCacheKey(): void
133133
134134 public function testParseHostname (): void
135135 {
136- $ hostname = 'appwrite:// database_db_nyc3_self_hosted_0_0?database=appwrite&namespace=_1 ' ;
136+ $ hostname = 'database_db_nyc3_self_hosted_0_0 ' ;
137137
138138 $ adapter = $ this ->createMock (Adapter::class);
139139 $ adapter ->method ('getSupportForHostname ' )->willReturn (true );
@@ -169,21 +169,4 @@ public function testParseHostname(): void
169169 $ this ->assertEquals ('default-cache-database_db_nyc3_self_hosted_0_0:_ns::collection:_metadata ' , $ collectionKey );
170170 $ this ->assertEquals ('default-cache-database_db_nyc3_self_hosted_0_0:_ns::collection:_metadata:users ' , $ documentKey );
171171 }
172-
173- public function testSimpleHostname (): void
174- {
175- $ hostname = 'database_db_nyc3_self_hosted_0_0 ' ;
176-
177- $ adapter = $ this ->createMock (Adapter::class);
178- $ adapter ->method ('getSupportForHostname ' )->willReturn (true );
179- $ adapter ->method ('getHostname ' )->willReturn ($ hostname );
180- $ adapter ->method ('getTenant ' )->willReturn (999 );
181- $ adapter ->method ('getSharedTables ' )->willReturn (true );
182- $ adapter ->method ('getNamespace ' )->willReturn ('_ns ' );
183-
184- $ db = new Database ($ adapter , new Cache (new None ()), []);
185-
186- [$ collectionKey ] = $ db ->getCacheKeys ('animals ' );
187- $ this ->assertEquals ('default-cache-database_db_nyc3_self_hosted_0_0:_ns:999:collection:animals ' , $ collectionKey );
188- }
189172}
0 commit comments