From 5263347f68924e1d92386c855b1ecd71d53c4fc3 Mon Sep 17 00:00:00 2001 From: Yurii Date: Sat, 27 Jun 2026 09:23:27 +0300 Subject: [PATCH] Notification service get test --- .../Tools/Notification/RecordServiceTest.php | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 tests/integration/Espo/Tools/Notification/RecordServiceTest.php diff --git a/tests/integration/Espo/Tools/Notification/RecordServiceTest.php b/tests/integration/Espo/Tools/Notification/RecordServiceTest.php new file mode 100644 index 0000000000..ecb29d821c --- /dev/null +++ b/tests/integration/Espo/Tools/Notification/RecordServiceTest.php @@ -0,0 +1,55 @@ +. + * + * The interactive user interfaces in modified source and object code versions + * of this program must display Appropriate Legal Notices, as required under + * Section 5 of the GNU Affero General Public License version 3. + * + * In accordance with Section 7(b) of the GNU Affero General Public License version 3, + * these Appropriate Legal Notices must retain the display of the "EspoCRM" word. + ************************************************************************/ + +namespace tests\integration\Espo\Tools\Notification; + +use Espo\Core\Select\SearchParams; +use Espo\Entities\User; +use Espo\Tools\Notification\RecordService; +use tests\integration\Core\BaseTestCase; + +class RecordServiceTest extends BaseTestCase +{ + /** + * @noinspection PhpUnhandledExceptionInspection + */ + public function testGet(): void + { + $this->createUser('tester'); + $this->authenticate('tester'); + + $service = $this->getInjectableFactory()->create(RecordService::class); + + $user = $this->getContainer()->getByClass(User::class); + + $service->get($user, SearchParams::create()); + + $this->assertTrue(true); + } +}