get(TablesController::class); $multiTableQueryController(); $this->assertSame( [ 'foreignKeyConstrains' => [ [ 'TABLE_NAME' => 'table2', 'COLUMN_NAME' => 'idtable2', 'REFERENCED_TABLE_NAME' => 'table1', 'REFERENCED_COLUMN_NAME' => 'idtable1', ], ], ], $this->getResponseJsonResult() ); } }