From d1be2727b04649e94e175ce2c9d76de5087a6da6 Mon Sep 17 00:00:00 2001 From: Sven Reichel Date: Mon, 16 Dec 2024 11:13:48 +0100 Subject: [PATCH] test --- .../Command/Database/DumpCommandTest.php | 21 +++++++------------ 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/tests/N98/Magento/Command/Database/DumpCommandTest.php b/tests/N98/Magento/Command/Database/DumpCommandTest.php index 700fe5e51..bb2b6ec26 100644 --- a/tests/N98/Magento/Command/Database/DumpCommandTest.php +++ b/tests/N98/Magento/Command/Database/DumpCommandTest.php @@ -50,20 +50,13 @@ public function testExecute() */ public function provideFilenamePatternsAndOptions(): \Iterator { - # testAddTimeAutogenerated - yield ['/^.*\d{4}-\d{2}-\d{2}_\d{6}\.sql$/', []]; - # testAddTimePrefixAutogenerated - yield ['/^\d{4}-\d{2}-\d{2}_\d{6}.*\.sql$/', ['--add-time' => 'prefix']]; - # testAddTimeFilenameSpecified - yield ['/^.*\d{4}-\d{2}-\d{2}_\d{6}\.sql.gz$/', ['--compression' => 'gzip']]; - # testAddTimeFilenameSpecified - yield ['/^foo_\d{4}-\d{2}-\d{2}_\d{6}\.sql$/', ['filename' => 'foo.sql']]; - # testAddTimePrefixFilenameSpecified - yield ['/^\d{4}-\d{2}-\d{2}_\d{6}_foo\.sql$/', ['filename' => 'foo.sql', '--add-time' => 'prefix']]; - # testAddTimeOffFilenameSpecified - yield ['/^foo.sql$/', ['filename' => 'foo.sql', '--add-time' => 'no']]; - # testAddTimeFilenameSpecifiedRelative - yield ['/^..\/foo_\d{4}-\d{2}-\d{2}_\d{6}\.sql$/', ['filename' => '../foo.sql']]; + yield 'testAddTimeAutogenerated' => ['/^.*\d{4}-\d{2}-\d{2}_\d{6}\.sql$/', []]; + yield 'testAddTimePrefixAutogenerated' => ['/^\d{4}-\d{2}-\d{2}_\d{6}.*\.sql$/', ['--add-time' => 'prefix']]; + yield 'testAddTimeFilenameSpecified' => ['/^.*\d{4}-\d{2}-\d{2}_\d{6}\.sql.gz$/', ['--compression' => 'gzip']]; + yield 'testAddTimeFilenameSpecified' => ['/^foo_\d{4}-\d{2}-\d{2}_\d{6}\.sql$/', ['filename' => 'foo.sql']]; + yield 'testAddTimePrefixFilenameSpecified' => ['/^\d{4}-\d{2}-\d{2}_\d{6}_foo\.sql$/', ['filename' => 'foo.sql', '--add-time' => 'prefix']]; + yield 'testAddTimeOffFilenameSpecified' => ['/^foo.sql$/', ['filename' => 'foo.sql', '--add-time' => 'no']]; + yield 'testAddTimeFilenameSpecifiedRelative' => ['/^..\/foo_\d{4}-\d{2}-\d{2}_\d{6}\.sql$/', ['filename' => '../foo.sql']]; } /**