@@ -1301,7 +1301,7 @@ public function testPurgeCollectionCache(): void
13011301 $this->assertArrayHasKey('age', $document);
13021302 }
13031303
1304- public function testSchemaAttribute (): void
1304+ public function testSchemaAttributes (): void
13051305 {
13061306 if (!$this->getDatabase()->getAdapter()->getSupportForSchemaAttributes()) {
13071307 $this->expectNotToPerformAssertions();
@@ -1358,9 +1358,9 @@ public function testSchemaAttribute(): void
13581358 if ($db->getSharedTables()) {
13591359 $attribute = $attributes['_tenant'];
13601360 $this->assertEquals('_tenant', $attribute['columnName']);
1361- $this->assertEquals('int ', $attribute['dataType']);
1361+ $this->assertEquals('bigint ', $attribute['dataType']);
13621362 $this->assertEquals('10', $attribute['numericPrecision']);
1363- $this->assertTrue(in_array($attribute['columnType'], ['int unsigned', 'int(11) unsigned']) );
1363+ $this->assertEquals('bigint unsigned', $attribute['columnType'] );
13641364 }
13651365 }
13661366
@@ -2910,15 +2910,15 @@ public function testArrayAttribute(): void
29102910 $this->fail('Failed to throw exception');
29112911 } catch (Throwable $e) {
29122912 $this->assertInstanceOf(DependencyException::class, $e);
2913- $this->assertEquals("Column 'cards' has a functional index dependency and cannot be dropped or renamed." , $e->getMessage());
2913+ $this->assertEquals('Attribute cannot be deleted because it is used in an index' , $e->getMessage());
29142914 }
29152915
29162916 try {
29172917 $database->renameAttribute($collection, 'cards', 'cards_new');
29182918 $this->fail('Failed to throw exception');
29192919 } catch (Throwable $e) {
29202920 $this->assertInstanceOf(DependencyException::class, $e);
2921- $this->assertEquals("Column 'cards' has a functional index dependency and cannot be dropped or renamed." , $e->getMessage());
2921+ $this->assertEquals('Attribute cannot be deleted because it is used in an index' , $e->getMessage());
29222922 }
29232923 } else {
29242924 $this->assertTrue($database->renameAttribute($collection, 'cards', 'cards_new'));
0 commit comments