Example #1
0
 public function setUp()
 {
     parent::setUp();
     $this->request = new Request();
     $this->router = new Router($this->request);
     $this->router->setBaseDir('/', '/');
 }
Example #2
0
    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();
    }
Example #3
0
    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();
    }
Example #4
0
 public function setUp()
 {
     parent::setUp();
     Event::clear();
     $this->dataMap = [];
 }
Example #5
0
 public function setUp()
 {
     parent::setUp();
 }
 public function setUp()
 {
     parent::setUp();
     $this->parser = new DomNodeParser();
 }
Example #7
0
 protected function setUp()
 {
     parent::setUp();
     $this->cleanupDb();
 }
 public function setUp()
 {
     parent::setUp();
     $this->converter = new Converter(new DomNodeParser(), new MarkdownRenderer());
 }
Example #9
0
 /**
  * Set up the test environment
  *
  * @return void
  * @author Dan Cox
  */
 public function setUp()
 {
     $this->controller = new HomeController();
     parent::setUp();
 }