public function NodeRevisionsAutocleanTest::testInitialRevisions in Node Revisions Autoclean 8
Test revisions.
File
- tests/
src/ Functional/ NodeRevisionsAutocleanTest.php, line 265
Class
- NodeRevisionsAutocleanTest
- Class NodeRevisionsAutocleanTest.
Namespace
Drupal\Tests\node_revisions_autoclean\FunctionalCode
public function testInitialRevisions() {
$this
->initializeSettings(FALSE);
$node = $this
->createNodeWithRevisions('1', 'page');
/* @var $revisionsManager RevisionsManager */
$revisionsManager = \Drupal::service('node_revisions_autoclean.revisions_manager');
$revisions = $revisionsManager
->loadRevisions($node);
$this
->assertEquals(12, count($revisions), 'Revisions initial : ' . count($revisions));
}