You are here

public function OnlyOneTest::providerSetFormatter in Allow a content type only once (Only One) 8

Data provider for testSetFormatter().

Return value

array An array of arrays, each containing:

  • 'formatter' - The formatter type.

See also

testExistsNodesContentType()

File

tests/src/Unit/OnlyOneTest.php, line 807

Class

OnlyOneTest
Tests the OnlyOne class methods.

Namespace

Drupal\Tests\onlyone\Unit

Code

public function providerSetFormatter() {
  $tests['admin page formatter'] = [
    new OnlyOnePrintAdminPage(),
  ];
  $tests['drush formatter'] = [
    new OnlyOnePrintDrush(),
  ];
  return $tests;
}