public function RateMultilingualTest::testMultilingualNode in Rate 8
Tests for multilingual node.
File
- tests/
src/ Functional/ RateMultilingualTest.php, line 85
Class
- RateMultilingualTest
- Tests voting for multilingual content.
Namespace
Drupal\Tests\rate\FunctionalCode
public function testMultilingualNode() {
$session = $this
->assertSession();
// Tests the translation.
$this
->drupalGet('pl/node/' . $this->node
->id());
$this
->assertFivestar(0);
$session
->linkExists('Star');
$session
->linkNotExists('Undo');
$this
->voteFivestar(5);
$this
->assertFivestar(5);
$session
->linkNotExists('Star');
$session
->linkExists('Undo');
$this
->drupalGet('node/' . $this->node
->id());
$this
->assertFivestar(5);
$session
->linkNotExists('Star');
$session
->linkExists('Undo');
}