Skip to content

Commit

Permalink
update expected output of smbclient usage in WindowsPrintConnectorTest
Browse files Browse the repository at this point in the history
  • Loading branch information
mike42 committed Mar 12, 2018
1 parent 1ab18a8 commit 74407f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/unit/WindowsPrintConnectorTest.php
Expand Up @@ -176,7 +176,7 @@ public function testSharedPrinterLinux()
$connector = $this -> getMockConnector("smb://example-pc/Printer", WindowsPrintConnector::PLATFORM_LINUX);
$connector -> expects($this -> once())
-> method('runCommand')
-> with($this -> equalTo('smbclient \'//example-pc/Printer\' -c \'print -\' -N'));
-> with($this -> equalTo('smbclient \'//example-pc/Printer\' -c \'print -\' -N -m SMB2'));
$connector -> expects($this -> exactly(0))
-> method('runCopy');
$connector -> expects($this -> exactly(0))
Expand All @@ -189,7 +189,7 @@ public function testSharedPrinterLinuxUsername()
$connector = $this -> getMockConnector("smb://bob@example-pc/Printer", WindowsPrintConnector::PLATFORM_LINUX);
$connector -> expects($this -> once())
-> method('runCommand')
-> with($this -> equalTo('smbclient \'//example-pc/Printer\' -U \'bob\' -c \'print -\' -N'));
-> with($this -> equalTo('smbclient \'//example-pc/Printer\' -U \'bob\' -c \'print -\' -N -m SMB2'));
$connector -> expects($this -> exactly(0))
-> method('runCopy');
$connector -> expects($this -> exactly(0))
Expand All @@ -202,7 +202,7 @@ public function testSharedPrinterLinuxUsernameDomain()
$connector = $this -> getMockConnector("smb://bob@example-pc/home/Printer", WindowsPrintConnector::PLATFORM_LINUX);
$connector -> expects($this -> once())
-> method('runCommand')
-> with($this -> equalTo('smbclient \'//example-pc/Printer\' -U \'home\\bob\' -c \'print -\' -N'));
-> with($this -> equalTo('smbclient \'//example-pc/Printer\' -U \'home\\bob\' -c \'print -\' -N -m SMB2'));
$connector -> expects($this -> exactly(0))
-> method('runCopy');
$connector -> expects($this -> exactly(0))
Expand All @@ -215,7 +215,7 @@ public function testSharedPrinterLinuxUsernamePassword()
$connector = $this -> getMockConnector("smb://bob:secret@example-pc/Printer", WindowsPrintConnector::PLATFORM_LINUX);
$connector -> expects($this -> once())
-> method('runCommand')
-> with($this -> equalTo('smbclient \'//example-pc/Printer\' \'secret\' -U \'bob\' -c \'print -\''));
-> with($this -> equalTo('smbclient \'//example-pc/Printer\' \'secret\' -U \'bob\' -c \'print -\' -m SMB2'));
$connector -> expects($this -> exactly(0))
-> method('runCopy');
$connector -> expects($this -> exactly(0))
Expand Down

0 comments on commit 74407f6

Please sign in to comment.