Another test
Este commit está contenido en:
padre
6213a0e499
commit
cc4f5e892f
Se han modificado 1 ficheros con 10 adiciones y 0 borrados
|
|
@ -60,4 +60,14 @@ class JsonTest extends PHPUnit_Framework_TestCase
|
||||||
$this->assertEquals ("Book 6.0 in the Sherlock Holmes series", $test ["seriesCompleteName"]);
|
$this->assertEquals ("Book 6.0 in the Sherlock Holmes series", $test ["seriesCompleteName"]);
|
||||||
$this->assertStringEndsWith ("?page=7&id=1", $test ["seriesurl"]);
|
$this->assertStringEndsWith ("?page=7&id=1", $test ["seriesurl"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testGetFullBookContentArray () {
|
||||||
|
$book = Book::getBookById(17);
|
||||||
|
|
||||||
|
$test = JSONRenderer::getFullBookContentArray($book);
|
||||||
|
|
||||||
|
$this->assertCount (1, $test ["authors"]);
|
||||||
|
$this->assertCount (3, $test ["tags"]);
|
||||||
|
$this->assertCount (3, $test ["datas"]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Cargando…
Añadir tabla
Añadir enlace
Referenciar en una nueva incidencia