cleanup after test

pull/298/head
David Goodwin 5 years ago
parent 946c47dd66
commit a485a2d861

@ -1,12 +1,17 @@
<?php
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() {
global $CONF;
$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', ));
// insert some data.

Loading…
Cancel
Save