createDatabaseInterface(); $GLOBALS['dbi'] = $dbi; $response = new ResponseRenderer(); $template = new Template(); $controller = new FirstStepController( $response, $template, new Normalization($dbi, new Relation($dbi), new Transformations(), $template) ); $controller($this->createStub(ServerRequest::class)); // phpcs:disable Generic.Files.LineLength.TooLong $this->assertSame([ 'legendText' => 'Step 2.1 Find partial dependencies', 'headText' => 'No partial dependencies possible as the primary key ( id ) has just one column.
', 'subText' => '', 'extra' => '

Table is already in second normal form.

', 'primary_key' => 'id', ], $response->getJSONResult()); // phpcs:enable } }