aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeolim4 <contact@geolim4.com>2014-08-09 12:26:11 +0200
committerGeolim4 <contact@geolim4.com>2014-08-09 13:19:03 +0200
commit4c06467777547d72a6ea936d024d85cae701189b (patch)
treecab90252a24194754738a102138cb69452bdafc8
parent01943adbf72e137b9dfbda3ac85120c21a30fab8 (diff)
downloadforums-4c06467777547d72a6ea936d024d85cae701189b.tar
forums-4c06467777547d72a6ea936d024d85cae701189b.tar.gz
forums-4c06467777547d72a6ea936d024d85cae701189b.tar.bz2
forums-4c06467777547d72a6ea936d024d85cae701189b.tar.xz
forums-4c06467777547d72a6ea936d024d85cae701189b.zip
[ticket/12671] Possibility to use NOT LIKE expression
PHPBB3-12671
-rw-r--r--tests/dbal/select_test.php28
1 files changed, 17 insertions, 11 deletions
diff --git a/tests/dbal/select_test.php b/tests/dbal/select_test.php
index 50ac5eb4d5..b7074552ba 100644
--- a/tests/dbal/select_test.php
+++ b/tests/dbal/select_test.php
@@ -239,9 +239,13 @@ class phpbb_dbal_select_test extends phpbb_database_test_case
return array(
array('barfoo', array(
array('username_clean' => 'foobar'),
- array('username_clean' => 'bertie'))
- ),
- array('bar', array(array('username_clean' => 'bertie'))),
+ array('username_clean' => 'bertie')
+ )),
+ array('bar', array(
+ array('username_clean' => 'barfoo'),
+ array('username_clean' => 'foobar'),
+ array('username_clean' => 'bertie'),
+ )),
array('bar*', array(
array('username_clean' => 'foobar'),
array('username_clean' => 'bertie'))
@@ -249,20 +253,22 @@ class phpbb_dbal_select_test extends phpbb_database_test_case
array('*bar*', array(array('username_clean' => 'bertie'))),
array('b*r', array(
array('username_clean' => 'barfoo'),
- array('username_clean' => 'foobar'))
- ),
+ array('username_clean' => 'foobar'),
+ array('username_clean' => 'bertie')
+ )),
array('b*e', array(
array('username_clean' => 'barfoo'),
- array('username_clean' => 'foobar'))
- ),
+ array('username_clean' => 'foobar')
+ )),
array('#b*e', array(
array('username_clean' => 'barfoo'),
- array('username_clean' => 'foobar'))
- ),
+ array('username_clean' => 'foobar'),
+ array('username_clean' => 'bertie')
+ )),
array('b####e', array(
array('username_clean' => 'barfoo'),
- array('username_clean' => 'foobar'))
- ),
+ array('username_clean' => 'foobar')
+ )),
);
}