Skip to content

Commit ac4bbf4

Browse files
Manjusha.SManjusha.S
authored andcommitted
fixed unit test
1 parent c365c6e commit ac4bbf4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

dev/tests/unit/Magento/FunctionalTestFramework/Util/ModuleResolverTest.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
use ReflectionProperty;
1717
use tests\unit\Util\MagentoTestCase;
1818
use tests\unit\Util\TestLoggingUtil;
19+
use Magento\FunctionalTestingFramework\Exceptions\TestFrameworkException;
20+
1921

2022
/**
2123
* Class ModuleResolverTest
@@ -807,7 +809,7 @@ public function testGetModulePathsNoAdminToken(): void
807809
$this->setMockResolverProperties($resolver);
808810

809811
// Cannot Generate if no --force was passed in and no Admin Token is returned successfully
810-
$this->expectException(FastFailException::class);
812+
$this->expectException(TestFrameworkException::class);
811813
$resolver->getModulesPath();
812814
}
813815

@@ -859,7 +861,7 @@ public function testGetAdminTokenWithMissingEnv(): void
859861
$this->setMockResolverProperties($resolver);
860862

861863
// Expect exception
862-
$this->expectException(FastFailException::class);
864+
$this->expectException(TestFrameworkException::class);
863865
$resolver->getModulesPath();
864866
}
865867

@@ -879,7 +881,7 @@ public function testGetAdminTokenWithBadResponse(): void
879881
$this->setMockResolverProperties($resolver);
880882

881883
// Expect exception
882-
$this->expectException(FastFailException::class);
884+
$this->expectException(TestFrameworkException::class);
883885
$resolver->getModulesPath();
884886
}
885887

0 commit comments

Comments
 (0)