|
|
@ -1,12 +1,17 @@
|
|
|
|
<?php
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
class CreatePageBrowserTest extends \PHPUnit\Framework\TestCase {
|
|
|
|
class CreatePageBrowserTest extends \PHPUnit\Framework\TestCase {
|
|
|
|
|
|
|
|
public function tearDown() {
|
|
|
|
|
|
|
|
$this->cleanup();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private function cleanup() {
|
|
|
|
|
|
|
|
db_query('DELETE FROM domain WHERE domain = :domain', array('domain' => 'example.com'));
|
|
|
|
|
|
|
|
}
|
|
|
|
public function testBasic() {
|
|
|
|
public function testBasic() {
|
|
|
|
global $CONF;
|
|
|
|
global $CONF;
|
|
|
|
$CONF['page_size'] = 10;
|
|
|
|
$CONF['page_size'] = 10;
|
|
|
|
|
|
|
|
|
|
|
|
db_query('DELETE FROM domain WHERE domain = :domain', array('domain' => 'example.com'));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
db_insert('domain', array('domain' => 'example.com', 'description' => 'test ' . __FILE__, 'transport' => 'foo', ));
|
|
|
|
db_insert('domain', array('domain' => 'example.com', 'description' => 'test ' . __FILE__, 'transport' => 'foo', ));
|
|
|
|
|
|
|
|
|
|
|
|
// insert some data.
|
|
|
|
// insert some data.
|
|
|
|