SkippedGenerationTest.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace tests\verification\Tests;
  7. use tests\util\MftfTestCase;
  8. class SkippedGenerationTest extends MftfTestCase
  9. {
  10. /**
  11. * Tests skipped test generation.
  12. *
  13. * @throws \Exception
  14. * @throws \Magento\FunctionalTestingFramework\Exceptions\TestReferenceException
  15. */
  16. public function testSkippedGeneration()
  17. {
  18. $this->generateAndCompareTest('SkippedTest');
  19. }
  20. /**
  21. * Tests skipped test generation does not generate hooks.
  22. *
  23. * @throws \Exception
  24. * @throws \Magento\FunctionalTestingFramework\Exceptions\TestReferenceException
  25. */
  26. public function testSkippedWithHooksGeneration()
  27. {
  28. $this->generateAndCompareTest('SkippedTestWithHooks');
  29. }
  30. /**
  31. * Tests skipped test with multiple issues generation.
  32. *
  33. * @throws \Exception
  34. * @throws \Magento\FunctionalTestingFramework\Exceptions\TestReferenceException
  35. */
  36. public function testMultipleSkippedIssuesGeneration()
  37. {
  38. $this->generateAndCompareTest('SkippedTestTwoIssues');
  39. }
  40. /**
  41. * Tests skipped test generation with no specified issues. Will be deprecated after MFTF 3.0.0
  42. *
  43. * @throws \Exception
  44. * @throws \Magento\FunctionalTestingFramework\Exceptions\TestReferenceException
  45. */
  46. public function testSkippedNoIssueGeneration()
  47. {
  48. $this->generateAndCompareTest('SkippedTestNoIssues');
  49. }
  50. }