IndexTest.php 602 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. /**
  7. * Test class for \Magento\Cms\Controller\Page.
  8. */
  9. namespace Magento\Cms\Controller\Noroute;
  10. class IndexTest extends \Magento\TestFramework\TestCase\AbstractController
  11. {
  12. /**
  13. * @magentoDbIsolation enabled
  14. * @magentoDataFixture Magento/Cms/_files/noroute.php
  15. */
  16. public function testDisabledNoRoutePage()
  17. {
  18. $this->dispatch('/test123');
  19. $this->assertContains('There was no 404 CMS page configured or found.', $this->getResponse()->getBody());
  20. }
  21. }