[TASK] replaced @expectedException in sysext:recordlist 86/48486/2
authorNadir Sunar <dernadir@gmail.com>
Tue, 7 Jun 2016 15:41:40 +0000 (17:41 +0200)
committerSusanne Moog <typo3@susannemoog.de>
Tue, 7 Jun 2016 16:07:47 +0000 (18:07 +0200)
Resolves: #76502
Releases: master
Change-Id: Ic366629c2c0f14c032bf2020e54af7e6a252e8b2
Reviewed-on: https://review.typo3.org/48486
Reviewed-by: Joerg Boesche <typo3@joergboesche.de>
Tested-by: Joerg Boesche <typo3@joergboesche.de>
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
typo3/sysext/recordlist/Tests/Unit/RecordList/AbstractDatabaseRecordListTest.php

index 28363b0..89c1cba 100644 (file)
@@ -89,11 +89,11 @@ class AbstractDatabaseRecordListTest extends UnitTestCase
 
     /**
      * @test
-     * @expectedException \UnexpectedValueException
-     * @expectedExceptionCode 1436195934
      */
     public function setTableDisplayOrderThrowsExceptionOnInvalidAfter()
     {
+        $this->expectException(\UnexpectedValueException::class);
+        $this->expectExceptionCode(1436195934);
         $test = [
             'table' => [ 'after' => new \stdClass ]
         ];
@@ -103,11 +103,11 @@ class AbstractDatabaseRecordListTest extends UnitTestCase
 
     /**
      * @test
-     * @expectedException \UnexpectedValueException
-     * @expectedExceptionCode 1436195933
      */
     public function setTableDisplayOrderThrowsExceptionOnInvalidBefore()
     {
+        $this->expectException(\UnexpectedValueException::class);
+        $this->expectExceptionCode(1436195933);
         $test = [
             'table' => [ 'before' => new \stdClass ]
         ];