Commit c530a082 authored by xjm's avatar xjm
Browse files

Issue #2462893 by anavarre, benjy: MigrateBlockContentTest assumes auto-increment increment of 1

parent a287113e
...@@ -57,7 +57,6 @@ public function testBlockMigration() { ...@@ -57,7 +57,6 @@ public function testBlockMigration() {
/** @var BlockContent $block */ /** @var BlockContent $block */
$block = BlockContent::load(1); $block = BlockContent::load(1);
$this->assertIdentical('My block 1', $block->label()); $this->assertIdentical('My block 1', $block->label());
$this->assertIdentical('1', $block->getRevisionId());
$this->assertTrue(REQUEST_TIME <= $block->getChangedTime() && $block->getChangedTime() <= time()); $this->assertTrue(REQUEST_TIME <= $block->getChangedTime() && $block->getChangedTime() <= time());
$this->assertIdentical('en', $block->language()->getId()); $this->assertIdentical('en', $block->language()->getId());
$this->assertIdentical('<h3>My first custom block body</h3>', $block->body->value); $this->assertIdentical('<h3>My first custom block body</h3>', $block->body->value);
...@@ -65,7 +64,6 @@ public function testBlockMigration() { ...@@ -65,7 +64,6 @@ public function testBlockMigration() {
$block = BlockContent::load(2); $block = BlockContent::load(2);
$this->assertIdentical('My block 2', $block->label()); $this->assertIdentical('My block 2', $block->label());
$this->assertIdentical('2', $block->getRevisionId());
$this->assertTrue(REQUEST_TIME <= $block->getChangedTime() && $block->getChangedTime() <= time()); $this->assertTrue(REQUEST_TIME <= $block->getChangedTime() && $block->getChangedTime() <= time());
$this->assertIdentical('en', $block->language()->getId()); $this->assertIdentical('en', $block->language()->getId());
$this->assertIdentical('<h3>My second custom block body</h3>', $block->body->value); $this->assertIdentical('<h3>My second custom block body</h3>', $block->body->value);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment