Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / views / tests / modules / views_test_data / src / Plugin / views / argument_validator / ArgumentValidatorTest.php
index ff251b294da41638d0ac79a73376642b63e1d9ca..101e681ad87b6ca0bdcf51bc64e642d623f0dabf 100644 (file)
@@ -37,6 +37,12 @@ class ArgumentValidatorTest extends ArgumentValidatorPluginBase {
    * {@inheritdoc}
    */
   public function validateArgument($arg) {
+    if ($arg === 'this value should be replaced') {
+      // Set the argument to a numeric value so this is valid on PostgeSQL for
+      // numeric fields.
+      $this->argument->argument = '1';
+      return TRUE;
+    }
     return $arg == $this->options['test_value'];
   }