diff --git a/core/modules/system/lib/Drupal/system/Tests/Database/SelectTest.php b/core/modules/system/lib/Drupal/system/Tests/Database/SelectTest.php index bbb24da..7b90e07 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Database/SelectTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Database/SelectTest.php @@ -491,6 +491,8 @@ function testEmptyInCondition() { ->fields('t') ->condition('age', array(), 'IN') ->execute(); + + $this->fail('Expected exception not thrown'); } catch (InvalidQueryException $e) { $this->assertEqual("Query condition 'age IN ()' cannot be empty.", $e->getMessage()); @@ -501,6 +503,8 @@ function testEmptyInCondition() { ->fields('t') ->condition('age', array(), 'NOT IN') ->execute(); + + $this->fail('Expected exception not thrown'); } catch (InvalidQueryException $e) { $this->assertEqual("Query condition 'age NOT IN ()' cannot be empty.", $e->getMessage());