validateTestingResultsEnvironment example



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

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

    $this->testRunResultsStorage->buildTestingResultsEnvironment(FALSE);

    $this->assertTrue($schema->tableExists('simpletest'));
    $this->assertTrue($schema->tableExists('simpletest_test_id'));
    $this->assertTrue($this->testRunResultsStorage->validateTestingResultsEnvironment());
  }

  /** * @covers ::buildTestingResultsEnvironment * @covers ::validateTestingResultsEnvironment * @covers ::createNew * @covers ::insertLogEntry * @covers ::cleanUp */
Home | Imprint | This part of the site doesn't use cookies.