createDatabaseInterface(); DatabaseInterface::$instance = $dbi; $response = new ResponseRenderer(); $template = new Template(); $request = self::createStub(ServerRequest::class); $request->method('getParsedBodyParam')->willReturnMap([ ['pd', null, json_encode(['ID, task' => [], 'task' => ['timestamp']])], ]); $controller = new NewTablesController( $response, $template, new Normalization($dbi, new Relation($dbi), new Transformations(), $template), ); $controller($request); // phpcs:disable Generic.Files.LineLength.TooLong self::assertSame( '
In order to put the original table \'test_table\' into Second normal form we need to create the following tables:
( ID, task )
( task, timestamp )', $response->getHTMLResult(), ); // phpcs:enable } }