
| Current Path : /var/www/html/store/web/modules/contrib/commerce/tests/src/Functional/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/store/web/modules/contrib/commerce/tests/src/Functional/ResponseTest.php |
<?php
namespace Drupal\Tests\commerce\Functional;
/**
* Tests to see if the "x-commerce-core" header is added.
*
* @group commerce
*/
class ResponseTest extends CommerceBrowserTestBase {
/**
* Test to see if the "x-commerce-core" header is added.
*/
public function testGeneratorStringAndHeader() {
$this->drupalGet('<front>');
$this->assertSession()->statusCodeEquals(200);
[$version] = explode('.', \Drupal::VERSION, 2);
$this->assertSession()->responseContains('Drupal ' . $version . ' (https://www.drupal.org); Commerce 2');
$this->assertEquals('2', $this->drupalGetHeader('X-Commerce-Core'));
}
}