Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
migrate_plus
Commits
3b301b0f
Commit
3b301b0f
authored
Jun 08, 2020
by
joegraduate
Browse files
Fixes
#232
: Drupal 9.0.x Symfony and PHPunit deprecation errors.
parent
1d96981b
Changes
3
Show whitespace changes
Inline
Side-by-side
src/Event/MigratePrepareRowEvent.php
View file @
3b301b0f
...
...
@@ -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\Co
mponent
\EventDispatcher\Event
;
use
Symfony\Co
ntracts
\EventDispatcher\Event
;
/**
* Wraps a prepare-row event for event listeners.
...
...
tests/src/Kernel/Plugin/migrate_plus/data_parser/SimpleXmlTest.php
View file @
3b301b0f
...
...
@@ -131,7 +131,7 @@ 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
->
expectExceptionMessage
RegExp
(
'/^Fatal Error 73/'
);
$this
->
expectExceptionMessage
Matches
(
'/^Fatal Error 73/'
);
$parser
=
$this
->
pluginManager
->
createInstance
(
'simple_xml'
,
$this
->
configuration
);
$parser
->
next
();
}
...
...
@@ -146,7 +146,7 @@ class SimpleXmlTest extends KernelTestBase {
$this
->
configuration
[
'urls'
][
0
]
=
$url
;
$this
->
expectException
(
MigrateException
::
class
);
$this
->
expectExceptionMessage
RegExp
(
'/^Fatal Error 76/'
);
$this
->
expectExceptionMessage
Matches
(
'/^Fatal Error 76/'
);
$parser
=
$this
->
pluginManager
->
createInstance
(
'simple_xml'
,
$this
->
configuration
);
$parser
->
next
();
...
...
@@ -162,7 +162,7 @@ class SimpleXmlTest extends KernelTestBase {
$this
->
configuration
[
'urls'
][
0
]
=
$url
;
$this
->
expectException
(
MigrateException
::
class
);
$this
->
expectExceptionMessage
RegExp
(
'/^Fatal Error 46/'
);
$this
->
expectExceptionMessage
Matches
(
'/^Fatal Error 46/'
);
$parser
=
$this
->
pluginManager
->
createInstance
(
'simple_xml'
,
$this
->
configuration
);
$parser
->
next
();
}
...
...
tests/src/Unit/DataParserPluginBaseTest.php
View file @
3b301b0f
...
...
@@ -74,7 +74,7 @@ class DataParserPluginBaseTest extends MigrateTestCase {
return
$this
->
getMockBuilder
(
DataParserPluginBaseMock
::
class
)
->
setConstructorArgs
([
$configuration
,
$plugin_id
,
$plugin_definition
])
->
set
Methods
([
'openSourceUrl'
])
->
only
Methods
([
'openSourceUrl'
])
->
getMockForAbstractClass
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment