createDatabaseInterface(); DatabaseInterface::$instance = $dbi; $response = new ResponseRenderer(); $template = new Template(); $request = ServerRequestFactory::create()->createServerRequest('POST', 'https://example.com/') ->withParsedBody([ 'pd' => json_encode(['ID, task' => [], 'task' => ['timestamp']]), ]); $relation = new Relation($dbi); $controller = new NewTablesController( $response, new Normalization($dbi, $relation, new Transformations($dbi, $relation), $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 } }