createDatabaseInterface(); DatabaseInterface::$instance = $dbi; $response = new ResponseRenderer(); $template = new Template(); $controller = new SecondStepController( $response, new Normalization($dbi, new Relation($dbi), new Transformations(), $template), ); $controller(self::createStub(ServerRequest::class)); self::assertSame([ 'legendText' => 'Step 1.2 Have a primary key', 'headText' => 'Primary key already exists.', 'subText' => 'Taking you to next step…', 'hasPrimaryKey' => '1', 'extra' => '', ], $response->getJSONResult()); } }