ResponseTest.php in Commerce Core 8.2
File
tests/src/Functional/ResponseTest.php
View source
<?php
namespace Drupal\Tests\commerce\Functional;
class ResponseTest extends CommerceBrowserTestBase {
public function testGeneratorStringAndHeader() {
$this
->drupalGet('<front>');
$this
->assertSession()
->statusCodeEquals(200);
list($version) = explode('.', \Drupal::VERSION, 2);
$this
->assertSession()
->responseContains('Drupal ' . $version . ' (https://www.drupal.org); Commerce 2');
$this
->assertEquals('2', $this
->drupalGetHeader('X-Commerce-Core'));
}
}
Classes
Name |
Description |
ResponseTest |
Tests to see if the "x-commerce-core" header is added. |