Commit 6a0c9ccb authored by heddn's avatar heddn
Browse files

revert symfony fixes, fix simplexml test case

parent 6427257e
......@@ -50,20 +50,20 @@
"preferred-install": "dist",
"process-timeout": 36000
},
"autoload": {
"classmap": [".spoons/ScriptHandler.php"]
},
"scripts": {
"si": "drush si -v --db-url=sqlite://sites/default/files/.sqlite testing",
"phpcs": "PWD=$(pwd) && phpcs --runtime-set ignore_warnings_on_exit 1 --runtime-set ignore_errors_on_exit 1 --ignore=$PWD/web/,$PWD/vendor/",
"phpcbf": "PWD=$(pwd) && phpcbf --runtime-set ignore_warnings_on_exit 1 --runtime-set ignore_errors_on_exit 1 --ignore=$PWD/web/,$PWD/vendor/",
"lint": "parallel-lint --exclude web --exclude vendor .",
"runserver": "drush runserver 0.0.0.0",
"runserver": "cd web && php -S 0.0.0.0:8888 .ht.router.php",
"chromedriver": "chromedriver --port=9515 --verbose --whitelisted-ips --log-path=/tmp/chromedriver.log --no-sandbox",
"create-symlinks": "cd web/modules/${PWD##*/} && find ../../.. -maxdepth 1 ! -name .git ! -name web ! -name vendor -print | while read file; do ln -s $file .; done",
"unit": "phpunit --list-tests web/modules/${PWD##*/} && phpunit --verbose web/modules/${PWD##*/}",
"phpstan": "phpstan analyse web/modules/${PWD##*/}",
"post-update-cmd": [
"DIR=${PWD##*/} && rm -rf web/modules/$DIR && mkdir -p web/modules/$DIR",
"@create-symlinks"
]
"post-update-cmd": ["Spoons\\ScriptHandler::createSymlinks"]
},
"minimum-stability": "dev",
"extra": {
......
......@@ -5,7 +5,7 @@ namespace Drupal\migrate_plus\Event;
use Drupal\migrate\Plugin\MigrateSourceInterface;
use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\Row;
use Symfony\Contracts\EventDispatcher\Event;
use Symfony\Component\EventDispatcher\Event;
/**
* Wraps a prepare-row event for event listeners.
......
......@@ -131,7 +131,8 @@ class SimpleXmlTest extends KernelTestBase {
$url = $this->path . '/tests/data/simple_xml_broken_missing_tag.xml';
$this->configuration['urls'][0] = $url;
$this->expectException(MigrateException::class);
$this->expectExceptionMessageMatches('/^Fatal Error 73/');
// Newer versions of libxml mark it as an error 76, older ones as 73.
$this->expectExceptionMessageMatches('/^Fatal Error 7[0-9]/');
$parser = $this->pluginManager->createInstance('simple_xml', $this->configuration);
$parser->next();
}
......@@ -177,7 +178,7 @@ class SimpleXmlTest extends KernelTestBase {
$this->configuration['urls'][0] = $url;
$this->expectException(MigrateException::class);
$this->expectExceptionMessage('file parser plugin: could not retrieve data from modules/contrib/migrate_plus/tests/data/simple_xml_non_existing.xml');
$this->expectExceptionMessage('file parser plugin: could not retrieve data from');
$parser = $this->pluginManager->createInstance('simple_xml', $this->configuration);
$parser->next();
}
......
Markdown is supported
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