Commit db2a83a4 authored by catch's avatar catch
Browse files

Issue #3417553 by longwave: Remove withConsecutive() in CacheCollectorTest

(cherry picked from commit 4fa8f80b)
parent 5ee806ab
Loading
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -3353,11 +3353,6 @@ parameters:
			count: 1
			path: tests/Drupal/Tests/Composer/ComposerTest.php

		-
			message: "#^Call to deprecated method withConsecutive\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\Builder\\\\InvocationMocker\\.$#"
			count: 1
			path: tests/Drupal/Tests/Core/Cache/CacheCollectorTest.php

		-
			message: """
				#^Call to deprecated method expectError\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\:
+4 −4
Original line number Diff line number Diff line
@@ -309,12 +309,12 @@ public function testUpdateCacheDelete() {
    ];
    // Set up mock expectation, on the second call the with the second argument
    // set to TRUE because we triggered a cache invalidation.
    $allow_invalid = [FALSE, TRUE];
    $this->cacheBackend->expects($this->exactly(2))
      ->method('get')
      ->withConsecutive(
        [$this->cid],
        [$this->cid, TRUE],
      )
      ->with($this->cid, $this->callback(function ($value) use (&$allow_invalid) {
        return array_shift($allow_invalid) === $value;
      }))
      ->willReturn($cache);

    $this->collector->delete($key);