public function setUp() { parent::setUp(); $this->request = new Request(); $this->router = new Router($this->request); $this->router->setBaseDir('/', '/'); }
public function setUp() { ActiveRecordModel::executeUpdate('DROP TABLE IF EXISTS SerializedModel'); ActiveRecordModel::executeUpdate(' CREATE TABLE SerializedModel ( ID INTEGER UNSIGNED NOT NULL, name VARCHAR(60) NOT NULL, CONSTRAINT PK_Manufacturer PRIMARY KEY (ID))'); return parent::setUp(); }
public function setUp() { ActiveRecordModel::executeUpdate('DROP TABLE IF EXISTS LoadReferenceSuper'); ActiveRecordModel::executeUpdate('DROP TABLE IF EXISTS LoadReferenceParent'); ActiveRecordModel::executeUpdate('DROP TABLE IF EXISTS LoadReferenceChild'); ActiveRecordModel::executeUpdate(' CREATE TABLE LoadReferenceSuper ( ID INTEGER UNSIGNED NOT NULL, referenceID INTEGER UNSIGNED NOT NULL, name VARCHAR(60) NOT NULL, CONSTRAINT PK_Manufacturer PRIMARY KEY (ID))'); ActiveRecordModel::executeUpdate(' CREATE TABLE LoadReferenceParent ( ID INTEGER UNSIGNED NOT NULL, referenceID INTEGER UNSIGNED NOT NULL, name VARCHAR(60) NOT NULL, CONSTRAINT PK_Manufacturer PRIMARY KEY (ID))'); ActiveRecordModel::executeUpdate(' CREATE TABLE LoadReferenceChild ( ID INTEGER UNSIGNED NOT NULL, name VARCHAR(60) NOT NULL, CONSTRAINT PK_Manufacturer PRIMARY KEY (ID))'); return parent::setUp(); }
public function setUp() { parent::setUp(); Event::clear(); $this->dataMap = []; }
public function setUp() { parent::setUp(); }
public function setUp() { parent::setUp(); $this->parser = new DomNodeParser(); }
protected function setUp() { parent::setUp(); $this->cleanupDb(); }
public function setUp() { parent::setUp(); $this->converter = new Converter(new DomNodeParser(), new MarkdownRenderer()); }
/** * Set up the test environment * * @return void * @author Dan Cox */ public function setUp() { $this->controller = new HomeController(); parent::setUp(); }