Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk committed Dec 13, 2024
1 parent 48e9950 commit 1140d9c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
9 changes: 5 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,18 @@
],
"require": {
"php": ">=8.1",
"cycle/orm": "^2.7",
"cycle/schema-builder": "^2.8",
"cycle/orm": "^2.9.1",
"cycle/schema-builder": "^2.11.1",
"spiral/attributes": "^2.8|^3.0",
"spiral/tokenizer": "^2.8|^3.0",
"doctrine/inflector": "^2.0"
},
"require-dev": {
"doctrine/annotations": "^1.14.3 || ^2.0.1",
"phpunit/phpunit": "^10.1",
"vimeo/psalm": "^5.11",
"spiral/code-style": "^2.2"
"vimeo/psalm": "^5.26",
"spiral/code-style": "^2.2",
"spiral/dumper": "^3.3"
},
"autoload": {
"psr-4": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function testJtiParentColumns(ReaderInterface $reader): void
$this->assertArrayHasKey(SchemaInterface::COLUMNS, $schema['person']);

// assert that parent doesn't have jti columns
$this->assertSame([
$this->assertEquals([
'id' => 'id',
'name' => 'name',
'type' => 'type',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ public function testSingleTableInheritanceWithDifferentColumnDeclaration(
SchemaInterface::SCOPE => null,
SchemaInterface::TYPECAST => [
'id' => 'int',
'body' => 'string',
],
SchemaInterface::SCHEMA => [],
SchemaInterface::TYPECAST_HANDLER => null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public function testTableInheritance(ReaderInterface $reader): void
$this->assertEmpty($schema['beaver'][SchemaInterface::PARENT_KEY] ?? null);
$this->assertEmpty($schema['beaver'][SchemaInterface::CHILDREN] ?? null);
$this->assertSame('beavers', $schema['beaver'][SchemaInterface::TABLE]);
$this->assertSame([
$this->assertEquals([
'teethAmount' => 'teeth_amount',
'foo_id' => 'id',
'name' => 'name',
Expand Down

0 comments on commit 1140d9c

Please sign in to comment.