Commit e69fe0b9 authored by Loparev's avatar Loparev
Browse files

Fixed ConnectorInfoTest + introduced drupalci.yml file

parent df2c0751
# This is the DrupalCI testbot build file for Drupal core.
# Learn to make one for your own drupal.org project:
# https://www.drupal.org/drupalorg/docs/drupal-ci/customizing-drupalci-testing
build:
assessment:
validate_codebase:
phplint:
csslint:
halt-on-fail: false
eslint:
# A test must pass eslinting standards check in order to continue processing.
halt-on-fail: true
phpcs:
# phpcs will use core's specified version of Coder.
sniff-all-files: false
halt-on-fail: false
testing:
# run_tests task is executed several times in order of performance speeds.
# halt-on-fail can be set on the run_tests tasks in order to fail fast.
# suppress-deprecations is false in order to be alerted to usages of
# deprecated code.
run_tests.phpunit:
types: 'PHPUnit-Unit'
testgroups: '--all'
suppress-deprecations: false
halt-on-fail: false
run_tests.kernel:
types: 'PHPUnit-Kernel'
testgroups: '--all'
suppress-deprecations: false
halt-on-fail: false
run_tests.simpletest:
types: 'Simpletest'
testgroups: '--all'
suppress-deprecations: false
halt-on-fail: false
# run_tests.functional:
# types: 'PHPUnit-Functional'
# testgroups: '--all'
# suppress-deprecations: false
# halt-on-fail: false
# Functional JavaScript tests require a concurrency of 1 because there is
# only one instance of PhantomJS on the testbot machine.
run_tests.javascript:
concurrency: 1
types: 'PHPUnit-FunctionalJavascript'
testgroups: '--all'
suppress-deprecations: false
halt-on-fail: false
# Run nightwatch testing.
# @see https://www.drupal.org/project/drupal/issues/2869825
nightwatchjs:
......@@ -15,7 +15,7 @@ use Smartling\Exceptions\SmartlingApiException;
// Note we have to disable the SYMFONY_DEPRECATIONS_HELPER to ensure deprecation
// notices are not triggered.
// TODO: remove this and fix all the deprecations before Drupal 9.0.0.
// TODO: remove this and fix all the deprecations before Drupal 10.0.0.
putenv('SYMFONY_DEPRECATIONS_HELPER=disabled');
/**
......
......@@ -19,7 +19,7 @@ class ConnectorInfoTest extends KernelTestBase {
}
public function testGetLibVersion() {
$this->assertTrue(preg_match('/(^\d\.\d\.\d+$)|(^\d\.\d\.\d-rc\d+$)/', ConnectorInfo::getLibVersion('system')) === 1);
$this->assertTrue(preg_match('/(^\d\.\d\.\d+$)|(^\d\.\d\.\d-rc\d+$)|(^\d\.\d\.x-dev+$)/', ConnectorInfo::getLibVersion('system')) === 1);
}
public function testGetDependenciesVersionsAsString() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment