diff --git a/core/modules/node/config/views.view.content_recent.yml b/core/modules/node/config/views.view.content_recent.yml index 2266c42..c96c760 100644 --- a/core/modules/node/config/views.view.content_recent.yml +++ b/core/modules/node/config/views.view.content_recent.yml @@ -450,7 +450,7 @@ display: operator: AND groups: { } use_more: '1' - use_more_always: '0' + use_more_always: '1' use_more_text: More link_display: custom_url label: 'Recent content' diff --git a/core/modules/node/lib/Drupal/node/Tests/NodeBlockFunctionalTest.php b/core/modules/node/lib/Drupal/node/Tests/NodeBlockFunctionalTest.php index 70598ee..7bcde78 100644 --- a/core/modules/node/lib/Drupal/node/Tests/NodeBlockFunctionalTest.php +++ b/core/modules/node/lib/Drupal/node/Tests/NodeBlockFunctionalTest.php @@ -31,7 +31,7 @@ class NodeBlockFunctionalTest extends NodeTestBase { * * @var array */ - public static $modules = array('block'); + public static $modules = array('block', 'views'); public static function getInfo() { return array( @@ -61,7 +61,7 @@ public function testRecentNodeBlock() { )); // Enable the recent content block with two items. - $block = $this->drupalPlaceBlock('node_recent_block', array('id' => 'test_block', 'block_count' => 2)); + $block = $this->drupalPlaceBlock('views_block:content_recent-block_1', array('id' => 'test_block', 'items_per_page' => 2)); // Test that block is not visible without nodes. $this->drupalGet(''); @@ -100,13 +100,13 @@ public function testRecentNodeBlock() { $this->assertText($node3->label(), 'Node found in block.'); // Check to make sure nodes are in the right order. - $this->assertTrue($this->xpath('//div[@id="block-test-block"]/div/table/tbody/tr[position() = 1]/td/div/a[text() = "' . $node3->label() . '"]'), 'Nodes were ordered correctly in block.'); + $this->assertTrue($this->xpath('//div[@id="block-test-block"]//table/tbody/tr[position() = 1]/td/a[text() = "' . $node3->label() . '"]'), 'Nodes were ordered correctly in block.'); $this->drupalLogout(); $this->drupalLogin($this->adminUser); // Set the number of recent nodes to show to 10. - $block->getPlugin()->setConfigurationValue('block_count', 10); + $block->getPlugin()->setConfigurationValue('items_per_page', 10); $block->save(); // Post an additional node.