From 6add6a2e47d1d3d7ed229bda3b7c198ec31a7fc1 Mon Sep 17 00:00:00 2001 From: rsgrinko Date: Wed, 22 Mar 2023 14:59:59 +0300 Subject: [PATCH] [*] test .gitlab-ci.yml --- tests/UserTest.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/UserTest.php b/tests/UserTest.php index 23d4cda..bf9407f 100644 --- a/tests/UserTest.php +++ b/tests/UserTest.php @@ -9,7 +9,11 @@ { public function testGetAllUserData(): void { - $this->assertTrue(method_exists(TestClass::class, 'getAllUserData'), TestClass::class . '\getAllUserData() - метод не найден'); + $testClassMock = $this->getMockBuilder(TestClass::class) + ->setConstructorArgs([1]) + ->getMock(); + + $this->assertTrue(method_exists($testClassMock, 'getAllUserData'), TestClass::class . '\getAllUserData() - метод не найден'); } } \ No newline at end of file