File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -170,14 +170,14 @@ public function testCreateCollectionWithSchemaIndexes(): void
170170 new Document([
171171 '$id' => ID::custom('idx_username_created_at'),
172172 'type' => Database::INDEX_KEY,
173- 'attributes' => ['username', '$createdAt' ],
173+ 'attributes' => ['username'],
174174 'lengths' => [99], // Length not equal to attributes length
175175 'orders' => [Database::ORDER_DESC],
176176 ]),
177177 ];
178178
179179 $collection = $database->createCollection(
180- __FUNCTION__ ,
180+ 'collection98' ,
181181 $attributes,
182182 $indexes,
183183 permissions: [
@@ -193,7 +193,6 @@ public function testCreateCollectionWithSchemaIndexes(): void
193193 $this->assertEquals($collection->getAttribute('indexes')[1]['lengths'][0], null);
194194
195195 $this->assertEquals($collection->getAttribute('indexes')[2]['attributes'][0], 'username');
196- $this->assertEquals($collection->getAttribute('indexes')[2]['attributes'][1], '$createdAt');
197196 $this->assertEquals($collection->getAttribute('indexes')[2]['lengths'][0], 99);
198197 $this->assertEquals($collection->getAttribute('indexes')[2]['orders'][0], Database::ORDER_DESC);
199198 }
You can’t perform that action at this time.
0 commit comments