From c97269231370c6e2cb4fa22c3bd7a134b77b6edd Mon Sep 17 00:00:00 2001 From: madmatt Date: Sat, 26 Mar 2016 11:55:01 +1300 Subject: [PATCH] MINOR: Fix PHPUnit @covers assertions for GridFieldTest This resolves issues when PHPUnit is run strictly, where it exits when it hits an @covers annotation that references a method that doesn't exist --- tests/forms/GridFieldTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/forms/GridFieldTest.php b/tests/forms/GridFieldTest.php index 6443633aa..c8d42f0bf 100644 --- a/tests/forms/GridFieldTest.php +++ b/tests/forms/GridFieldTest.php @@ -22,8 +22,8 @@ class GridFieldTest extends SapphireTest { /** * @covers GridField::__construct * @covers GridField::getConfig - * @covers GridField::setComponents - * @covers GridField::getDefaultConfig + * @covers GridFieldConfig_Base::__construct + * @covers GridFieldConfig::addComponent */ public function testGridFieldDefaultConfig() { $obj = new GridField('testfield', 'testfield'); @@ -45,8 +45,8 @@ class GridFieldTest extends SapphireTest { } /** - * @covers GridField::__construct - * @covers GridField::setComponents + * @covers GridFieldConfig::__construct + * @covers GridFieldConfig::addComponent */ public function testGridFieldSetCustomConfig() {