setUpEntityStorage example


  public function testGetBaseTable($base_table$expected) {
    $this->entityType->expects($this->once())
      ->method('getBaseTable')
      ->willReturn($base_table);

    $this->setUpEntityStorage();

    $this->assertSame($expected$this->entityStorage->getBaseTable());
  }

  /** * Provides test data for testGetBaseTable(). * * @return array[] * A nested array where each inner array has the base table to be returned * by the mocked entity type as the first value and the expected return * value of SqlContentEntityStorage::getBaseTable() as the second * value. */
Home | Imprint | This part of the site doesn't use cookies.