[TASK] Remove deprecated methods/properties in Extbase
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Tests / Unit / Persistence / Generic / QueryResultTest.php
index f78f009..620dfec 100644 (file)
@@ -175,10 +175,9 @@ class QueryResultTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
        /**
         * @test
         */
-       public function usingCurrentOnTheQueryResultReturnsAWarning() {
+       public function usingCurrentOnTheQueryResultReturnsNull() {
                $queryResult = new \TYPO3\CMS\Extbase\Persistence\Generic\QueryResult($this->mockQuery);
-               $expectedResult = 'You should never see this warning. If you do, you probably used PHP array functions like current() on the TYPO3\\CMS\\Extbase\\Persistence\\Generic\\QueryResult. To retrieve the first result, you can use the getFirst() method.';
                $actualResult = current($queryResult);
-               $this->assertEquals($expectedResult, $actualResult);
+               $this->assertNull($actualResult);
        }
 }