From b5e34ca7674a7edb3c88e0fa1c2e1d71bf0218fc Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 17 Jan 2020 10:27:12 +0100 Subject: [PATCH] Fix remove tests --- .../Test/DependencyResolver/RequestTest.php | 4 +--- .../Test/DependencyResolver/SolverTest.php | 23 ------------------- 2 files changed, 1 insertion(+), 26 deletions(-) diff --git a/tests/Composer/Test/DependencyResolver/RequestTest.php b/tests/Composer/Test/DependencyResolver/RequestTest.php index 405f3b0c8..7534f9a5c 100644 --- a/tests/Composer/Test/DependencyResolver/RequestTest.php +++ b/tests/Composer/Test/DependencyResolver/RequestTest.php @@ -18,7 +18,7 @@ use Composer\Test\TestCase; class RequestTest extends TestCase { - public function testRequestInstallAndRemove() + public function testRequestInstall() { $repo = new ArrayRepository; $foo = $this->getPackage('foo', '1'); @@ -31,12 +31,10 @@ class RequestTest extends TestCase $request = new Request(); $request->install('foo'); - $request->remove('foobar'); $this->assertEquals( array( array('cmd' => 'install', 'packageName' => 'foo', 'constraint' => null), - array('cmd' => 'remove', 'packageName' => 'foobar', 'constraint' => null), ), $request->getJobs() ); diff --git a/tests/Composer/Test/DependencyResolver/SolverTest.php b/tests/Composer/Test/DependencyResolver/SolverTest.php index 4801188e4..01a518f27 100644 --- a/tests/Composer/Test/DependencyResolver/SolverTest.php +++ b/tests/Composer/Test/DependencyResolver/SolverTest.php @@ -196,28 +196,6 @@ class SolverTest extends TestCase $this->checkSolverResult(array()); } - public function testSolverRemoveSingle() - { - $this->repoLocked->addPackage($packageA = $this->getPackage('A', '1.0')); - $this->reposComplete(); - - $this->request->remove('A'); - - $this->checkSolverResult(array( - array('job' => 'remove', 'package' => $packageA), - )); - } - - public function testSolverRemoveUninstalled() - { - $this->repo->addPackage($this->getPackage('A', '1.0')); - $this->reposComplete(); - - $this->request->remove('A'); - - $this->checkSolverResult(array()); - } - public function testSolverUpdateDoesOnlyUpdate() { $this->repoLocked->addPackage($packageA = $this->getPackage('A', '1.0')); @@ -367,7 +345,6 @@ class SolverTest extends TestCase $this->request->install('A'); $this->request->install('C'); - $this->request->remove('D'); $this->checkSolverResult(array( array('job' => 'remove', 'package' => $packageD),