/**
  * Only set up once for these read only tests on a large fixture
  *
  * Skipping the reset-up, since setting up for these tests takes quite some
  * time, which is not required to spent, since we are only reading from the
  * database anyways.
  *
  * @return void
  */
 public function setUp()
 {
     if (!self::$setUp) {
         parent::setUp();
         $this->insertDatabaseFixture(__DIR__ . '/SearchHandler/_fixtures/full_dump.php');
         self::$setUp = $this->handler;
     } else {
         $this->handler = self::$setUp;
     }
 }
Пример #2
0
 /**
  * Only set up once for these read only tests on a large fixture.
  *
  * Skipping the reset-up, since setting up for these tests takes quite some
  * time, which is not required to spent, since we are only reading from the
  * database anyways.
  */
 public function setUp()
 {
     if (!self::$setUp) {
         parent::setUp();
         $this->insertDatabaseFixture(__DIR__ . '/../../../../../vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Search/Legacy/Tests/_fixtures/full_dump.php');
         self::$setUp = $this->handler;
         $handler = $this->getDatabaseHandler();
         $schema = __DIR__ . '/../../../../_fixtures/schema/schema.' . $this->db . '.sql';
         $queries = array_filter(preg_split('(;\\s*$)m', file_get_contents($schema)));
         foreach ($queries as $query) {
             $handler->exec($query);
         }
         $this->insertDatabaseFixture(__DIR__ . '/../../../../_fixtures/tags_tree.php');
     } else {
         $this->handler = self::$setUp;
     }
 }
 /**
  * Inserts DB fixture.
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->insertDatabaseFixture(__DIR__ . '/../../_fixtures/contentobjects.php');
     $this->insertDatabaseFixture(__DIR__ . '/../../_fixtures/objectstates.php');
 }
 public function setUp()
 {
     parent::setUp();
     $this->insertDatabaseFixture(__DIR__ . '/_fixtures/languages.php');
 }