Fixing delete client workspace bug.
parent
14a6406f9b
commit
c1a8b4645c
|
@ -111,7 +111,9 @@ class Perforce
|
|||
public function cleanupClientSpec()
|
||||
{
|
||||
$client = $this->getClient();
|
||||
$command = 'p4 client -d ' . $client;
|
||||
$task = 'client -d ' . $client;
|
||||
$useP4Client = false;
|
||||
$command = $this->generateP4Command($task, $useP4Client);
|
||||
$this->executeCommand($command);
|
||||
$clientSpec = $this->getP4ClientSpec();
|
||||
$fileSystem = $this->getFilesystem();
|
||||
|
|
|
@ -686,7 +686,7 @@ class PerforceTest extends \PHPUnit_Framework_TestCase
|
|||
$this->perforce->setFilesystem($fs);
|
||||
|
||||
$testClient = $this->perforce->getClient();
|
||||
$expectedCommand = 'p4 client -d ' . $testClient;
|
||||
$expectedCommand = 'p4 -u ' . self::TEST_P4USER . ' -p ' . self::TEST_PORT . ' client -d ' . $testClient;
|
||||
$this->processExecutor->expects($this->once())->method('execute')->with($this->equalTo($expectedCommand));
|
||||
|
||||
$fs->expects($this->once())->method('remove')->with($this->perforce->getP4ClientSpec());
|
||||
|
|
Loading…
Reference in New Issue