SimpletestTestRunResultsStorage example


  protected $testRunResultsStorage;

  /** * {@inheritdoc} */
  public function setUp(): void {
    parent::setUp();
    $this->connection = Database::getConnection();
    $this->testRunResultsStorage = new SimpletestTestRunResultsStorage($this->connection);
  }

  /** * @covers ::buildTestingResultsEnvironment * @covers ::validateTestingResultsEnvironment */
  public function testBuildNewEnvironment(): void {
    $schema = $this->connection->schema();

    $this->assertFalse($schema->tableExists('simpletest'));
    $this->assertFalse($schema->tableExists('simpletest_test_id'));
    

  protected $testRunResultsStorage;

  /** * {@inheritdoc} */
  public function setUp(): void {
    parent::setUp();
    $this->connection = Database::getConnection();
    $this->testRunResultsStorage = new SimpletestTestRunResultsStorage($this->connection);
    $this->testRunResultsStorage->buildTestingResultsEnvironment(FALSE);
  }

  /** * @covers ::createNew * @covers ::get * @covers ::id * @covers ::insertLogEntry * @covers ::setDatabasePrefix * @covers ::getDatabasePrefix * @covers ::getTestClass */
Home | Imprint | This part of the site doesn't use cookies.