From 9cb33ea5bfd7cdc7befe59eb21bc324961b6f93f Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 26 Sep 2016 22:54:28 +1300 Subject: [PATCH] Fixed @covers namespaces --- tests/control/ControllerTest.php | 2 +- tests/control/DirectorTest.php | 2 +- tests/core/ClassInfoTest.php | 4 +- tests/forms/GridFieldTest.php | 68 +++++++++---------- .../gridfield/GridFieldDataColumnsTest.php | 18 ++--- tests/model/DBStringTest.php | 6 +- tests/model/DataObjectSchemaTest.php | 2 +- tests/model/HierarchyTest.php | 2 +- tests/view/SSViewerTest.php | 2 +- 9 files changed, 53 insertions(+), 53 deletions(-) diff --git a/tests/control/ControllerTest.php b/tests/control/ControllerTest.php index dc9279a22..8faedd0d3 100644 --- a/tests/control/ControllerTest.php +++ b/tests/control/ControllerTest.php @@ -294,7 +294,7 @@ class ControllerTest extends FunctionalTest { } /** - * @covers Controller::hasAction + * @covers SilverStripe\Control\Controller::hasAction */ public function testHasAction() { $controller = new ControllerTest_HasAction(); diff --git a/tests/control/DirectorTest.php b/tests/control/DirectorTest.php index dc99e6847..eda96a36c 100644 --- a/tests/control/DirectorTest.php +++ b/tests/control/DirectorTest.php @@ -424,7 +424,7 @@ class DirectorTest extends SapphireTest { } /** - * @covers Director::extract_request_headers() + * @covers SilverStripe\Control\Director::extract_request_headers() */ public function testExtractRequestHeaders() { $request = array( diff --git a/tests/core/ClassInfoTest.php b/tests/core/ClassInfoTest.php index ba84fae87..215763b99 100644 --- a/tests/core/ClassInfoTest.php +++ b/tests/core/ClassInfoTest.php @@ -92,7 +92,7 @@ class ClassInfoTest extends SapphireTest { } /** - * @covers ClassInfo::ancestry() + * @covers SilverStripe\Core\ClassInfo::ancestry() */ public function testAncestry() { $ancestry = ClassInfo::ancestry('ClassInfoTest_ChildClass'); @@ -119,7 +119,7 @@ class ClassInfoTest extends SapphireTest { } /** - * @covers ClassInfo::dataClassesFor() + * @covers SilverStripe\Core\ClassInfo::dataClassesFor() */ public function testDataClassesFor() { $expect = array( diff --git a/tests/forms/GridFieldTest.php b/tests/forms/GridFieldTest.php index 4d9c6f9ec..43fdef5c8 100644 --- a/tests/forms/GridFieldTest.php +++ b/tests/forms/GridFieldTest.php @@ -33,7 +33,7 @@ use SilverStripe\Forms\GridField\GridField_HTMLProvider; class GridFieldTest extends SapphireTest { /** - * @covers GridField::__construct + * @covers SilverStripe\Forms\GridField\GridField::__construct */ public function testGridField() { $obj = new GridField('testfield', 'testfield'); @@ -41,8 +41,8 @@ class GridFieldTest extends SapphireTest { } /** - * @covers GridField::__construct - * @covers GridField::getList + * @covers SilverStripe\Forms\GridField\GridField::__construct + * @covers SilverStripe\Forms\GridField\GridField::getList */ public function testGridFieldSetList() { $list = ArrayList::create(array(1=>'hello', 2=>'goodbye')); @@ -51,10 +51,10 @@ class GridFieldTest extends SapphireTest { } /** - * @covers GridField::__construct - * @covers GridField::getConfig - * @covers GridFieldConfig_Base::__construct - * @covers GridFieldConfig::addComponent + * @covers SilverStripe\Forms\GridField\GridField::__construct + * @covers SilverStripe\Forms\GridField\GridField::getConfig + * @covers SilverStripe\Forms\GridField\GridFieldConfig_Base::__construct + * @covers SilverStripe\Forms\GridField\GridFieldConfig::addComponent */ public function testGridFieldDefaultConfig() { $obj = new GridField('testfield', 'testfield'); @@ -76,8 +76,8 @@ class GridFieldTest extends SapphireTest { } /** - * @covers GridFieldConfig::__construct - * @covers GridFieldConfig::addComponent + * @covers SilverStripe\Forms\GridField\GridFieldConfig::__construct + * @covers SilverStripe\Forms\GridField\GridFieldConfig::addComponent */ public function testGridFieldSetCustomConfig() { @@ -97,8 +97,8 @@ class GridFieldTest extends SapphireTest { } /** - * @covers GridField::getModelClass - * @covers GridField::setModelClass + * @covers SilverStripe\Forms\GridField\GridField::getModelClass + * @covers SilverStripe\Forms\GridField\GridField::setModelClass */ public function testGridFieldModelClass() { $obj = new GridField('testfield', 'testfield', Member::get()); @@ -108,7 +108,7 @@ class GridFieldTest extends SapphireTest { } /** - * @covers GridField::getModelClass + * @covers SilverStripe\Forms\GridField\GridField::getModelClass */ public function testGridFieldModelClassThrowsException() { $this->setExpectedException('LogicException'); @@ -117,8 +117,8 @@ class GridFieldTest extends SapphireTest { } /** - * @covers GridField::setList - * @covers GridField::getList + * @covers SilverStripe\Forms\GridField\GridField::setList + * @covers SilverStripe\Forms\GridField\GridField::getList */ public function testSetAndGetList() { $list = Member::get(); @@ -130,7 +130,7 @@ class GridFieldTest extends SapphireTest { } /** - * @covers GridField::getState + * @covers SilverStripe\Forms\GridField\GridField::getState */ public function testGetState() { $obj = new GridField('testfield', 'testfield'); @@ -141,9 +141,9 @@ class GridFieldTest extends SapphireTest { /** * Tests usage of nested GridState values * - * @covers GridState_Data::__get - * @covers GridState_Data::__call - * @covers GridState_Data::getData + * @covers SilverStripe\Forms\GridField\GridState_Data::__get + * @covers SilverStripe\Forms\GridField\GridState_Data::__call + * @covers SilverStripe\Forms\GridField\GridState_Data::getData */ public function testGetStateData() { $obj = new GridField('testfield', 'testfield'); @@ -189,7 +189,7 @@ class GridFieldTest extends SapphireTest { /** * @skipUpgrade - * @covers GridField::getColumns + * @covers SilverStripe\Forms\GridField\GridField::getColumns */ public function testGetColumns(){ $obj = new GridField('testfield', 'testfield', Member::get()); @@ -202,7 +202,7 @@ class GridFieldTest extends SapphireTest { } /** - * @covers GridField::getColumnCount + * @covers SilverStripe\Forms\GridField\GridField::getColumnCount */ public function testGetColumnCount() { $obj = new GridField('testfield', 'testfield', Member::get()); @@ -211,7 +211,7 @@ class GridFieldTest extends SapphireTest { /** * @skipUpgrade - * @covers GridField::getColumnContent + * @covers SilverStripe\Forms\GridField\GridField::getColumnContent */ public function testGetColumnContent() { $list = new ArrayList(array( @@ -223,7 +223,7 @@ class GridFieldTest extends SapphireTest { /** * @skipUpgrade - * @covers GridField::getColumnContent + * @covers SilverStripe\Forms\GridField\GridField::getColumnContent */ public function testGetColumnContentBadArguments() { $this->setExpectedException('InvalidArgumentException'); @@ -236,7 +236,7 @@ class GridFieldTest extends SapphireTest { /** * @skipUpgrade - * @covers GridField::getColumnAttributes + * @covers SilverStripe\Forms\GridField\GridField::getColumnAttributes */ public function testGetColumnAttributesEmptyArray() { $list = new ArrayList(array( @@ -248,7 +248,7 @@ class GridFieldTest extends SapphireTest { /** * @skipUpgrade - * @covers GridField::getColumnAttributes + * @covers SilverStripe\Forms\GridField\GridField::getColumnAttributes */ public function testGetColumnAttributes() { $list = new ArrayList(array( @@ -260,7 +260,7 @@ class GridFieldTest extends SapphireTest { } /** - * @covers GridField::getColumnAttributes + * @covers SilverStripe\Forms\GridField\GridField::getColumnAttributes */ public function testGetColumnAttributesBadArguments() { $this->setExpectedException('InvalidArgumentException'); @@ -284,7 +284,7 @@ class GridFieldTest extends SapphireTest { /** * @skipUpgrade - * @covers GridField::getColumnMetadata + * @covers SilverStripe\Forms\GridField\GridField::getColumnMetadata */ public function testGetColumnMetadata() { $list = new ArrayList(array( @@ -296,7 +296,7 @@ class GridFieldTest extends SapphireTest { } /** - * @covers GridField::getColumnMetadata + * @covers SilverStripe\Forms\GridField\GridField::getColumnMetadata */ public function testGetColumnMetadataBadResponseFromComponent() { $this->setExpectedException('LogicException'); @@ -309,7 +309,7 @@ class GridFieldTest extends SapphireTest { } /** - * @covers GridField::getColumnMetadata + * @covers SilverStripe\Forms\GridField\GridField::getColumnMetadata */ public function testGetColumnMetadataBadArguments() { $this->setExpectedException('InvalidArgumentException'); @@ -320,7 +320,7 @@ class GridFieldTest extends SapphireTest { } /** - * @covers GridField::handleAction + * @covers SilverStripe\Forms\GridField\GridField::handleAction */ public function testHandleActionBadArgument() { $this->setExpectedException('InvalidArgumentException'); @@ -329,7 +329,7 @@ class GridFieldTest extends SapphireTest { } /** - * @covers GridField::handleAction + * @covers SilverStripe\Forms\GridField\GridField::handleAction */ public function testHandleAction() { $config = GridFieldConfig::create()->addComponent(new GridFieldTest_Component); @@ -338,7 +338,7 @@ class GridFieldTest extends SapphireTest { } /** - * @covers GridField::getCastedValue + * @covers SilverStripe\Forms\GridField\GridField::getCastedValue */ public function testGetCastedValue() { $obj = new GridField('testfield', 'testfield'); @@ -347,7 +347,7 @@ class GridFieldTest extends SapphireTest { } /** - * @covers GridField::getCastedValue + * @covers SilverStripe\Forms\GridField\GridField::getCastedValue */ public function testGetCastedValueObject() { $obj = new GridField('testfield', 'testfield'); @@ -356,7 +356,7 @@ class GridFieldTest extends SapphireTest { } /** - * @covers GridField::gridFieldAlterAction + * @covers SilverStripe\Forms\GridField\GridField::gridFieldAlterAction */ public function testGridFieldAlterAction() { $this->markTestIncomplete(); @@ -456,7 +456,7 @@ class GridFieldTest extends SapphireTest { } /** - * @covers GridField::FieldHolder + * @covers SilverStripe\Forms\GridField\GridField::FieldHolder */ public function testCanViewOnlyOddIDs() { $this->logInWithPermission(); diff --git a/tests/forms/gridfield/GridFieldDataColumnsTest.php b/tests/forms/gridfield/GridFieldDataColumnsTest.php index 47e69ec78..27dd25178 100644 --- a/tests/forms/gridfield/GridFieldDataColumnsTest.php +++ b/tests/forms/gridfield/GridFieldDataColumnsTest.php @@ -8,7 +8,7 @@ use SilverStripe\Forms\GridField\GridField; class GridFieldDataColumnsTest extends SapphireTest { /** - * @covers GridFieldDataColumns::getDisplayFields + * @covers SilverStripe\Forms\GridField\GridFieldDataColumns::getDisplayFields */ public function testGridFieldGetDefaultDisplayFields() { $obj = new GridField('testfield', 'testfield', Member::get()); @@ -18,8 +18,8 @@ class GridFieldDataColumnsTest extends SapphireTest { } /** - * @covers GridFieldDataColumns::setDisplayFields - * @covers GridFieldDataColumns::getDisplayFields + * @covers SilverStripe\Forms\GridField\GridFieldDataColumns::setDisplayFields + * @covers SilverStripe\Forms\GridField\GridFieldDataColumns::getDisplayFields */ public function testGridFieldCustomDisplayFields() { $obj = new GridField('testfield', 'testfield', Member::get()); @@ -31,8 +31,8 @@ class GridFieldDataColumnsTest extends SapphireTest { } /** - * @covers GridFieldDataColumns::setDisplayFields - * @covers GridFieldDataColumns::getDisplayFields + * @covers SilverStripe\Forms\GridField\GridFieldDataColumns::setDisplayFields + * @covers SilverStripe\Forms\GridField\GridFieldDataColumns::getDisplayFields */ public function testGridFieldDisplayFieldsWithBadArguments() { $this->setExpectedException('InvalidArgumentException'); @@ -42,8 +42,8 @@ class GridFieldDataColumnsTest extends SapphireTest { } /** - * @covers GridFieldDataColumns::getFieldCasting - * @covers GridFieldDataColumns::setFieldCasting + * @covers SilverStripe\Forms\GridField\GridFieldDataColumns::getFieldCasting + * @covers SilverStripe\Forms\GridField\GridFieldDataColumns::setFieldCasting */ public function testFieldCasting() { $obj = new GridField('testfield', 'testfield'); @@ -54,8 +54,8 @@ class GridFieldDataColumnsTest extends SapphireTest { } /** - * @covers GridFieldDataColumns::getFieldFormatting - * @covers GridFieldDataColumns::setFieldFormatting + * @covers SilverStripe\Forms\GridField\GridFieldDataColumns::getFieldFormatting + * @covers SilverStripe\Forms\GridField\GridFieldDataColumns::setFieldFormatting */ public function testFieldFormatting() { $obj = new GridField('testfield', 'testfield'); diff --git a/tests/model/DBStringTest.php b/tests/model/DBStringTest.php index b204c627f..1ecfa7712 100644 --- a/tests/model/DBStringTest.php +++ b/tests/model/DBStringTest.php @@ -17,7 +17,7 @@ use SilverStripe\Dev\TestOnly; class DBStringTest extends SapphireTest { /** - * @covers SilverStripe\Model\FieldType\DBField::forTemplate() + * @covers SilverStripe\ORM\FieldType\DBField::forTemplate() */ public function testForTemplate() { $this->assertEquals( @@ -39,7 +39,7 @@ class DBStringTest extends SapphireTest { } /** - * @covers SilverStripe\Model\FieldType\DBString::LowerCase() + * @covers SilverStripe\ORM\FieldType\DBString::LowerCase() */ public function testLowerCase() { $this->assertEquals( @@ -49,7 +49,7 @@ class DBStringTest extends SapphireTest { } /** - * @covers SilverStripe\Model\FieldType\DBString::UpperCase() + * @covers SilverStripe\ORM\FieldType\DBString::UpperCase() */ public function testUpperCase() { $this->assertEquals( diff --git a/tests/model/DataObjectSchemaTest.php b/tests/model/DataObjectSchemaTest.php index be1e4d86e..10d5f2f90 100644 --- a/tests/model/DataObjectSchemaTest.php +++ b/tests/model/DataObjectSchemaTest.php @@ -297,7 +297,7 @@ class DataObjectSchemaTest extends SapphireTest /** - * @covers DataObjectSchema::baseDataClass() + * @covers SilverStripe\ORM\DataObjectSchema::baseDataClass() */ public function testBaseDataClass() { $schema = DataObject::getSchema(); diff --git a/tests/model/HierarchyTest.php b/tests/model/HierarchyTest.php index 21303fa12..2e7e3f619 100644 --- a/tests/model/HierarchyTest.php +++ b/tests/model/HierarchyTest.php @@ -191,7 +191,7 @@ class HierarchyTest extends SapphireTest { } /** - * @covers Hierarchy::markChildren() + * @covers SilverStripe\ORM\Hierarchy\Hierarchy::markChildren() */ public function testMarkChildrenDoesntUnmarkPreviouslyMarked() { $obj3 = $this->objFromFixture('HierarchyTest_Object', 'obj3'); diff --git a/tests/view/SSViewerTest.php b/tests/view/SSViewerTest.php index edcc56f5c..24e9e18cf 100644 --- a/tests/view/SSViewerTest.php +++ b/tests/view/SSViewerTest.php @@ -1166,7 +1166,7 @@ after') } /** - * @covers SSViewer::get_templates_by_class() + * @covers SilverStripe\View\SSViewer::get_templates_by_class() */ public function testGetTemplatesByClass() { $self = $this;