@@ -21,7 +21,7 @@ class Xtrabackup8Test extends TestCase
21
21
*/
22
22
public function testDefault ()
23
23
{
24
- $ expectedDump = 'xtrabackup" --backup \'./dump \'' ;
24
+ $ expectedDump = 'xtrabackup" --backup --target-dir= \'./dump \'' ;
25
25
$ expected = '" ' . PHPBU_TEST_BIN . '/ ' . $ expectedDump ;
26
26
$ xtra = new Xtrabackup8 (PHPBU_TEST_BIN );
27
27
$ xtra ->dumpTo ('./dump ' );
@@ -34,7 +34,7 @@ public function testDefault()
34
34
*/
35
35
public function testDataDir ()
36
36
{
37
- $ expectedDump = 'xtrabackup" --backup --datadir= \'/foo/bar \' \'./dump \'' ;
37
+ $ expectedDump = 'xtrabackup" --backup --datadir= \'/foo/bar \' --target-dir= \'./dump \'' ;
38
38
$ expected = '" ' . PHPBU_TEST_BIN . '/ ' . $ expectedDump ;
39
39
$ xtra = new Xtrabackup8 (PHPBU_TEST_BIN );
40
40
$ xtra ->dumpFrom ('/foo/bar ' )->dumpTo ('./dump ' );
@@ -57,7 +57,7 @@ public function testFailNoDumpDir()
57
57
*/
58
58
public function testUser ()
59
59
{
60
- $ expectedDump = 'xtrabackup" --backup --user= \'root \' \'./dump \'' ;
60
+ $ expectedDump = 'xtrabackup" --backup --user= \'root \' --target-dir= \'./dump \'' ;
61
61
$ expected = '" ' . PHPBU_TEST_BIN . '/ ' . $ expectedDump ;
62
62
$ xtra = new Xtrabackup8 (PHPBU_TEST_BIN );
63
63
$ xtra ->credentials ('root ' )->dumpTo ('./dump ' );
@@ -70,7 +70,7 @@ public function testUser()
70
70
*/
71
71
public function testPassword ()
72
72
{
73
- $ expectedDump = 'xtrabackup" --backup --password= \'secret \' \'./dump \'' ;
73
+ $ expectedDump = 'xtrabackup" --backup --password= \'secret \' --target-dir= \'./dump \'' ;
74
74
$ expected = '" ' . PHPBU_TEST_BIN . '/ ' . $ expectedDump ;
75
75
$ xtra = new Xtrabackup8 (PHPBU_TEST_BIN );
76
76
$ xtra ->credentials ('' , 'secret ' )->dumpTo ('./dump ' );
@@ -83,7 +83,7 @@ public function testPassword()
83
83
*/
84
84
public function testHost ()
85
85
{
86
- $ expectedDump = '" ' . PHPBU_TEST_BIN . '/xtrabackup" --backup --host= \'example.com \' \'./dump \'' ;
86
+ $ expectedDump = '" ' . PHPBU_TEST_BIN . '/xtrabackup" --backup --host= \'example.com \' --target-dir= \'./dump \'' ;
87
87
$ expected = $ expectedDump ;
88
88
$ xtra = new Xtrabackup8 (PHPBU_TEST_BIN );
89
89
$ xtra ->useHost ('example.com ' )->dumpTo ('./dump ' );
@@ -96,7 +96,8 @@ public function testHost()
96
96
*/
97
97
public function testDatabases ()
98
98
{
99
- $ expectedDump = '" ' . PHPBU_TEST_BIN . '/xtrabackup" --backup --databases= \'db1 db2 db3.table1 \' \'./dump \'' ;
99
+ $ expectedDump = '" ' . PHPBU_TEST_BIN . '/xtrabackup" --backup '
100
+ . '--databases= \'db1 db2 db3.table1 \' --target-dir= \'./dump \'' ;
100
101
$ expected = $ expectedDump ;
101
102
$ xtra = new Xtrabackup8 (PHPBU_TEST_BIN );
102
103
$ xtra ->dumpDatabases (['db1 ' , 'db2 ' , 'db3.table1 ' ])->dumpTo ('./dump ' );
0 commit comments