Update to Drupal 8.0.1. For more information, see https://www.drupal.org/node/2627402
This commit is contained in:
parent
013aaaf2ff
commit
1a0e9d9fac
153 changed files with 1268 additions and 670 deletions
|
@ -258,6 +258,23 @@ class FieldPluginBaseTest extends UnitTestCase {
|
|||
$this->assertEquals($expected_result, $result);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests the "No results text" rendering.
|
||||
*
|
||||
* @covers ::renderText
|
||||
*/
|
||||
public function testRenderNoResult() {
|
||||
$this->setupDisplayWithEmptyArgumentsAndFields();
|
||||
$field = $this->setupTestField(['empty' => 'This <strong>should work</strong>.']);
|
||||
$field->field_alias = 'key';
|
||||
$row = new ResultRow(['key' => '']);
|
||||
|
||||
$expected_result = 'This <strong>should work</strong>.';
|
||||
$result = $field->advancedRender($row);
|
||||
$this->assertEquals($expected_result, $result);
|
||||
$this->assertInstanceOf('\Drupal\views\Render\ViewsRenderPipelineMarkup', $result);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test rendering of a link with a path and options.
|
||||
*
|
||||
|
|
Reference in a new issue