yield 'ar_text_id is "0"' => [ [ 'ar_text_id' => '0' ] ];
}
- /**
- * @dataProvider provideGetTextFromRowThrowsInvalidArgumentException
- * @covers PageArchive::getTextFromRow
- */
- public function testGetTextFromRowThrowsInvalidArgumentException( array $row ) {
- $this->hideDeprecated( PageArchive::class . '::getTextFromRow' );
- $this->setExpectedException( InvalidArgumentException::class );
-
- $this->archivedPage->getTextFromRow( (object)$row );
- }
-
- /**
- * @covers PageArchive::getLastRevisionText
- */
- public function testGetLastRevisionText() {
- $this->hideDeprecated( PageArchive::class . '::getLastRevisionText' );
-
- $text = $this->archivedPage->getLastRevisionText();
- $this->assertSame( 'Lorem Ipsum', $text );
- }
-
/**
* @covers PageArchive::getLastRevisionId
*/