From 71e7859c913665f166f74447f311de1f11bb8b03 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Sun, 15 Sep 2019 21:11:20 +0100 Subject: [PATCH] see #161 and #87 - unit test that seems to trigger this bug --- tests/CreatePageBrowserTest.php | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 tests/CreatePageBrowserTest.php diff --git a/tests/CreatePageBrowserTest.php b/tests/CreatePageBrowserTest.php new file mode 100644 index 00000000..55292edb --- /dev/null +++ b/tests/CreatePageBrowserTest.php @@ -0,0 +1,32 @@ +assertEquals(1, + db_insert( + 'mailbox', + array( + 'username' => $username, + 'password' => 'blah', + 'name' => 'blah', + 'maildir' => 'blah', + 'local_part' => 'blah', + 'domain' => 'example.com', + ) + ) + ); + } + + // this breaks on sqlite atm. + $b = create_page_browser('mailbox.username FROM mailbox', 'WHERE 1 = 1' ); + + $this->assertNotEmpty($b); + } +}