client = $this->createClient(); } /** * Default route test */ public function testRouteSlash() { $records = array( self::$record_1->get_serialize_key(), self::$record_2->get_serialize_key() ); $lst = implode(';', $records); $crawler = $this->client->request('POST', '/printer/', array('lst' => $lst)); $response = $this->client->getResponse(); $this->assertTrue($response->isOk()); } public function testRoutePrintPdf() { $this->markTestSkipped("Undefined variable: k_path_url \n /Users/nicolasl/workspace/phraseanet/lib/vendor/tcpdf/config/tcpdf_config.php:75"); $records = array( self::$record_1->get_serialize_key(), self::$record_2->get_serialize_key() ); $lst = implode(';', $records); $crawler = $this->client->request('POST', '/printer/print.pdf', array( 'lst' => $lst, 'lay' => \Alchemy\Phrasea\Out\Module\PDF::LAYOUT_PREVIEW ) ); $response = $this->client->getResponse(); $this->assertEquals("application/pdf", $response->headers->get("content-type")); $this->assertTrue($response->isOk()); } }