Fixed @covers namespaces

This commit is contained in:
Ingo Schommer 2016-09-26 22:54:28 +13:00
parent 345b4d56e6
commit 9cb33ea5bf
9 changed files with 53 additions and 53 deletions

View File

@ -294,7 +294,7 @@ class ControllerTest extends FunctionalTest {
} }
/** /**
* @covers Controller::hasAction * @covers SilverStripe\Control\Controller::hasAction
*/ */
public function testHasAction() { public function testHasAction() {
$controller = new ControllerTest_HasAction(); $controller = new ControllerTest_HasAction();

View File

@ -424,7 +424,7 @@ class DirectorTest extends SapphireTest {
} }
/** /**
* @covers Director::extract_request_headers() * @covers SilverStripe\Control\Director::extract_request_headers()
*/ */
public function testExtractRequestHeaders() { public function testExtractRequestHeaders() {
$request = array( $request = array(

View File

@ -92,7 +92,7 @@ class ClassInfoTest extends SapphireTest {
} }
/** /**
* @covers ClassInfo::ancestry() * @covers SilverStripe\Core\ClassInfo::ancestry()
*/ */
public function testAncestry() { public function testAncestry() {
$ancestry = ClassInfo::ancestry('ClassInfoTest_ChildClass'); $ancestry = ClassInfo::ancestry('ClassInfoTest_ChildClass');
@ -119,7 +119,7 @@ class ClassInfoTest extends SapphireTest {
} }
/** /**
* @covers ClassInfo::dataClassesFor() * @covers SilverStripe\Core\ClassInfo::dataClassesFor()
*/ */
public function testDataClassesFor() { public function testDataClassesFor() {
$expect = array( $expect = array(

View File

@ -33,7 +33,7 @@ use SilverStripe\Forms\GridField\GridField_HTMLProvider;
class GridFieldTest extends SapphireTest { class GridFieldTest extends SapphireTest {
/** /**
* @covers GridField::__construct * @covers SilverStripe\Forms\GridField\GridField::__construct
*/ */
public function testGridField() { public function testGridField() {
$obj = new GridField('testfield', 'testfield'); $obj = new GridField('testfield', 'testfield');
@ -41,8 +41,8 @@ class GridFieldTest extends SapphireTest {
} }
/** /**
* @covers GridField::__construct * @covers SilverStripe\Forms\GridField\GridField::__construct
* @covers GridField::getList * @covers SilverStripe\Forms\GridField\GridField::getList
*/ */
public function testGridFieldSetList() { public function testGridFieldSetList() {
$list = ArrayList::create(array(1=>'hello', 2=>'goodbye')); $list = ArrayList::create(array(1=>'hello', 2=>'goodbye'));
@ -51,10 +51,10 @@ class GridFieldTest extends SapphireTest {
} }
/** /**
* @covers GridField::__construct * @covers SilverStripe\Forms\GridField\GridField::__construct
* @covers GridField::getConfig * @covers SilverStripe\Forms\GridField\GridField::getConfig
* @covers GridFieldConfig_Base::__construct * @covers SilverStripe\Forms\GridField\GridFieldConfig_Base::__construct
* @covers GridFieldConfig::addComponent * @covers SilverStripe\Forms\GridField\GridFieldConfig::addComponent
*/ */
public function testGridFieldDefaultConfig() { public function testGridFieldDefaultConfig() {
$obj = new GridField('testfield', 'testfield'); $obj = new GridField('testfield', 'testfield');
@ -76,8 +76,8 @@ class GridFieldTest extends SapphireTest {
} }
/** /**
* @covers GridFieldConfig::__construct * @covers SilverStripe\Forms\GridField\GridFieldConfig::__construct
* @covers GridFieldConfig::addComponent * @covers SilverStripe\Forms\GridField\GridFieldConfig::addComponent
*/ */
public function testGridFieldSetCustomConfig() { public function testGridFieldSetCustomConfig() {
@ -97,8 +97,8 @@ class GridFieldTest extends SapphireTest {
} }
/** /**
* @covers GridField::getModelClass * @covers SilverStripe\Forms\GridField\GridField::getModelClass
* @covers GridField::setModelClass * @covers SilverStripe\Forms\GridField\GridField::setModelClass
*/ */
public function testGridFieldModelClass() { public function testGridFieldModelClass() {
$obj = new GridField('testfield', 'testfield', Member::get()); $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() { public function testGridFieldModelClassThrowsException() {
$this->setExpectedException('LogicException'); $this->setExpectedException('LogicException');
@ -117,8 +117,8 @@ class GridFieldTest extends SapphireTest {
} }
/** /**
* @covers GridField::setList * @covers SilverStripe\Forms\GridField\GridField::setList
* @covers GridField::getList * @covers SilverStripe\Forms\GridField\GridField::getList
*/ */
public function testSetAndGetList() { public function testSetAndGetList() {
$list = Member::get(); $list = Member::get();
@ -130,7 +130,7 @@ class GridFieldTest extends SapphireTest {
} }
/** /**
* @covers GridField::getState * @covers SilverStripe\Forms\GridField\GridField::getState
*/ */
public function testGetState() { public function testGetState() {
$obj = new GridField('testfield', 'testfield'); $obj = new GridField('testfield', 'testfield');
@ -141,9 +141,9 @@ class GridFieldTest extends SapphireTest {
/** /**
* Tests usage of nested GridState values * Tests usage of nested GridState values
* *
* @covers GridState_Data::__get * @covers SilverStripe\Forms\GridField\GridState_Data::__get
* @covers GridState_Data::__call * @covers SilverStripe\Forms\GridField\GridState_Data::__call
* @covers GridState_Data::getData * @covers SilverStripe\Forms\GridField\GridState_Data::getData
*/ */
public function testGetStateData() { public function testGetStateData() {
$obj = new GridField('testfield', 'testfield'); $obj = new GridField('testfield', 'testfield');
@ -189,7 +189,7 @@ class GridFieldTest extends SapphireTest {
/** /**
* @skipUpgrade * @skipUpgrade
* @covers GridField::getColumns * @covers SilverStripe\Forms\GridField\GridField::getColumns
*/ */
public function testGetColumns(){ public function testGetColumns(){
$obj = new GridField('testfield', 'testfield', Member::get()); $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() { public function testGetColumnCount() {
$obj = new GridField('testfield', 'testfield', Member::get()); $obj = new GridField('testfield', 'testfield', Member::get());
@ -211,7 +211,7 @@ class GridFieldTest extends SapphireTest {
/** /**
* @skipUpgrade * @skipUpgrade
* @covers GridField::getColumnContent * @covers SilverStripe\Forms\GridField\GridField::getColumnContent
*/ */
public function testGetColumnContent() { public function testGetColumnContent() {
$list = new ArrayList(array( $list = new ArrayList(array(
@ -223,7 +223,7 @@ class GridFieldTest extends SapphireTest {
/** /**
* @skipUpgrade * @skipUpgrade
* @covers GridField::getColumnContent * @covers SilverStripe\Forms\GridField\GridField::getColumnContent
*/ */
public function testGetColumnContentBadArguments() { public function testGetColumnContentBadArguments() {
$this->setExpectedException('InvalidArgumentException'); $this->setExpectedException('InvalidArgumentException');
@ -236,7 +236,7 @@ class GridFieldTest extends SapphireTest {
/** /**
* @skipUpgrade * @skipUpgrade
* @covers GridField::getColumnAttributes * @covers SilverStripe\Forms\GridField\GridField::getColumnAttributes
*/ */
public function testGetColumnAttributesEmptyArray() { public function testGetColumnAttributesEmptyArray() {
$list = new ArrayList(array( $list = new ArrayList(array(
@ -248,7 +248,7 @@ class GridFieldTest extends SapphireTest {
/** /**
* @skipUpgrade * @skipUpgrade
* @covers GridField::getColumnAttributes * @covers SilverStripe\Forms\GridField\GridField::getColumnAttributes
*/ */
public function testGetColumnAttributes() { public function testGetColumnAttributes() {
$list = new ArrayList(array( $list = new ArrayList(array(
@ -260,7 +260,7 @@ class GridFieldTest extends SapphireTest {
} }
/** /**
* @covers GridField::getColumnAttributes * @covers SilverStripe\Forms\GridField\GridField::getColumnAttributes
*/ */
public function testGetColumnAttributesBadArguments() { public function testGetColumnAttributesBadArguments() {
$this->setExpectedException('InvalidArgumentException'); $this->setExpectedException('InvalidArgumentException');
@ -284,7 +284,7 @@ class GridFieldTest extends SapphireTest {
/** /**
* @skipUpgrade * @skipUpgrade
* @covers GridField::getColumnMetadata * @covers SilverStripe\Forms\GridField\GridField::getColumnMetadata
*/ */
public function testGetColumnMetadata() { public function testGetColumnMetadata() {
$list = new ArrayList(array( $list = new ArrayList(array(
@ -296,7 +296,7 @@ class GridFieldTest extends SapphireTest {
} }
/** /**
* @covers GridField::getColumnMetadata * @covers SilverStripe\Forms\GridField\GridField::getColumnMetadata
*/ */
public function testGetColumnMetadataBadResponseFromComponent() { public function testGetColumnMetadataBadResponseFromComponent() {
$this->setExpectedException('LogicException'); $this->setExpectedException('LogicException');
@ -309,7 +309,7 @@ class GridFieldTest extends SapphireTest {
} }
/** /**
* @covers GridField::getColumnMetadata * @covers SilverStripe\Forms\GridField\GridField::getColumnMetadata
*/ */
public function testGetColumnMetadataBadArguments() { public function testGetColumnMetadataBadArguments() {
$this->setExpectedException('InvalidArgumentException'); $this->setExpectedException('InvalidArgumentException');
@ -320,7 +320,7 @@ class GridFieldTest extends SapphireTest {
} }
/** /**
* @covers GridField::handleAction * @covers SilverStripe\Forms\GridField\GridField::handleAction
*/ */
public function testHandleActionBadArgument() { public function testHandleActionBadArgument() {
$this->setExpectedException('InvalidArgumentException'); $this->setExpectedException('InvalidArgumentException');
@ -329,7 +329,7 @@ class GridFieldTest extends SapphireTest {
} }
/** /**
* @covers GridField::handleAction * @covers SilverStripe\Forms\GridField\GridField::handleAction
*/ */
public function testHandleAction() { public function testHandleAction() {
$config = GridFieldConfig::create()->addComponent(new GridFieldTest_Component); $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() { public function testGetCastedValue() {
$obj = new GridField('testfield', 'testfield'); $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() { public function testGetCastedValueObject() {
$obj = new GridField('testfield', 'testfield'); $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() { public function testGridFieldAlterAction() {
$this->markTestIncomplete(); $this->markTestIncomplete();
@ -456,7 +456,7 @@ class GridFieldTest extends SapphireTest {
} }
/** /**
* @covers GridField::FieldHolder * @covers SilverStripe\Forms\GridField\GridField::FieldHolder
*/ */
public function testCanViewOnlyOddIDs() { public function testCanViewOnlyOddIDs() {
$this->logInWithPermission(); $this->logInWithPermission();

View File

@ -8,7 +8,7 @@ use SilverStripe\Forms\GridField\GridField;
class GridFieldDataColumnsTest extends SapphireTest { class GridFieldDataColumnsTest extends SapphireTest {
/** /**
* @covers GridFieldDataColumns::getDisplayFields * @covers SilverStripe\Forms\GridField\GridFieldDataColumns::getDisplayFields
*/ */
public function testGridFieldGetDefaultDisplayFields() { public function testGridFieldGetDefaultDisplayFields() {
$obj = new GridField('testfield', 'testfield', Member::get()); $obj = new GridField('testfield', 'testfield', Member::get());
@ -18,8 +18,8 @@ class GridFieldDataColumnsTest extends SapphireTest {
} }
/** /**
* @covers GridFieldDataColumns::setDisplayFields * @covers SilverStripe\Forms\GridField\GridFieldDataColumns::setDisplayFields
* @covers GridFieldDataColumns::getDisplayFields * @covers SilverStripe\Forms\GridField\GridFieldDataColumns::getDisplayFields
*/ */
public function testGridFieldCustomDisplayFields() { public function testGridFieldCustomDisplayFields() {
$obj = new GridField('testfield', 'testfield', Member::get()); $obj = new GridField('testfield', 'testfield', Member::get());
@ -31,8 +31,8 @@ class GridFieldDataColumnsTest extends SapphireTest {
} }
/** /**
* @covers GridFieldDataColumns::setDisplayFields * @covers SilverStripe\Forms\GridField\GridFieldDataColumns::setDisplayFields
* @covers GridFieldDataColumns::getDisplayFields * @covers SilverStripe\Forms\GridField\GridFieldDataColumns::getDisplayFields
*/ */
public function testGridFieldDisplayFieldsWithBadArguments() { public function testGridFieldDisplayFieldsWithBadArguments() {
$this->setExpectedException('InvalidArgumentException'); $this->setExpectedException('InvalidArgumentException');
@ -42,8 +42,8 @@ class GridFieldDataColumnsTest extends SapphireTest {
} }
/** /**
* @covers GridFieldDataColumns::getFieldCasting * @covers SilverStripe\Forms\GridField\GridFieldDataColumns::getFieldCasting
* @covers GridFieldDataColumns::setFieldCasting * @covers SilverStripe\Forms\GridField\GridFieldDataColumns::setFieldCasting
*/ */
public function testFieldCasting() { public function testFieldCasting() {
$obj = new GridField('testfield', 'testfield'); $obj = new GridField('testfield', 'testfield');
@ -54,8 +54,8 @@ class GridFieldDataColumnsTest extends SapphireTest {
} }
/** /**
* @covers GridFieldDataColumns::getFieldFormatting * @covers SilverStripe\Forms\GridField\GridFieldDataColumns::getFieldFormatting
* @covers GridFieldDataColumns::setFieldFormatting * @covers SilverStripe\Forms\GridField\GridFieldDataColumns::setFieldFormatting
*/ */
public function testFieldFormatting() { public function testFieldFormatting() {
$obj = new GridField('testfield', 'testfield'); $obj = new GridField('testfield', 'testfield');

View File

@ -17,7 +17,7 @@ use SilverStripe\Dev\TestOnly;
class DBStringTest extends SapphireTest { class DBStringTest extends SapphireTest {
/** /**
* @covers SilverStripe\Model\FieldType\DBField::forTemplate() * @covers SilverStripe\ORM\FieldType\DBField::forTemplate()
*/ */
public function testForTemplate() { public function testForTemplate() {
$this->assertEquals( $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() { public function testLowerCase() {
$this->assertEquals( $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() { public function testUpperCase() {
$this->assertEquals( $this->assertEquals(

View File

@ -297,7 +297,7 @@ class DataObjectSchemaTest extends SapphireTest
/** /**
* @covers DataObjectSchema::baseDataClass() * @covers SilverStripe\ORM\DataObjectSchema::baseDataClass()
*/ */
public function testBaseDataClass() { public function testBaseDataClass() {
$schema = DataObject::getSchema(); $schema = DataObject::getSchema();

View File

@ -191,7 +191,7 @@ class HierarchyTest extends SapphireTest {
} }
/** /**
* @covers Hierarchy::markChildren() * @covers SilverStripe\ORM\Hierarchy\Hierarchy::markChildren()
*/ */
public function testMarkChildrenDoesntUnmarkPreviouslyMarked() { public function testMarkChildrenDoesntUnmarkPreviouslyMarked() {
$obj3 = $this->objFromFixture('HierarchyTest_Object', 'obj3'); $obj3 = $this->objFromFixture('HierarchyTest_Object', 'obj3');

View File

@ -1166,7 +1166,7 @@ after')
} }
/** /**
* @covers SSViewer::get_templates_by_class() * @covers SilverStripe\View\SSViewer::get_templates_by_class()
*/ */
public function testGetTemplatesByClass() { public function testGetTemplatesByClass() {
$self = $this; $self = $this;