From dcfc644e4460c62a4c45ad176b6bd65e68d7bd95 Mon Sep 17 00:00:00 2001 From: Cerys Date: Fri, 29 Nov 2024 11:17:10 +0000 Subject: [PATCH] some tests --- tests/QueryBuilderDirectoryTest.php | 20 ++++++++++++++++++++ tests/QueryBuilderPermissionsTest.php | 20 ++++++++++++++++++++ tests/QueryBuilderReferencesTest.php | 20 ++++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 tests/QueryBuilderDirectoryTest.php create mode 100644 tests/QueryBuilderPermissionsTest.php create mode 100644 tests/QueryBuilderReferencesTest.php diff --git a/tests/QueryBuilderDirectoryTest.php b/tests/QueryBuilderDirectoryTest.php new file mode 100644 index 0000000..71389b4 --- /dev/null +++ b/tests/QueryBuilderDirectoryTest.php @@ -0,0 +1,20 @@ +RelativePath("{00000000-0000-0000-0000-000000000000}") + ->Build(); + self::assertEquals( + expected: 'DIRECTORY {00000000-0000-0000-0000-000000000000}', + actual: $query + ); + } +} diff --git a/tests/QueryBuilderPermissionsTest.php b/tests/QueryBuilderPermissionsTest.php new file mode 100644 index 0000000..28f8e6a --- /dev/null +++ b/tests/QueryBuilderPermissionsTest.php @@ -0,0 +1,20 @@ +On("{00000000-0000-0000-0000-000000000000}") + ->Build(); + self::assertEquals( + expected: 'PERMISSIONS ON {00000000-0000-0000-0000-000000000000}', + actual: $query + ); + } +} diff --git a/tests/QueryBuilderReferencesTest.php b/tests/QueryBuilderReferencesTest.php new file mode 100644 index 0000000..a616507 --- /dev/null +++ b/tests/QueryBuilderReferencesTest.php @@ -0,0 +1,20 @@ +RelativePath("{00000000-0000-0000-0000-000000000000}") + ->Build(); + self::assertEquals( + expected: 'REFERENCES {00000000-0000-0000-0000-000000000000}', + actual: $query + ); + } +}