StringTest.php in GraphQL 8.4
File
tests/src/Kernel/DataProducer/StringTest.php
View source
<?php
namespace Drupal\Tests\graphql\Kernel\DataProducer;
use Drupal\Tests\graphql\Kernel\GraphQLTestBase;
class StringTest extends GraphQLTestBase {
public function testUppercase(string $input, string $expected) : void {
$result = $this
->executeDataProducer('uppercase', [
'string' => $input,
]);
$this
->assertEquals($expected, $result);
}
public function testUppercaseProvider() : array {
return [
[
'test',
'TEST',
],
[
'123 ..!!',
'123 ..!!',
],
[
'test123',
'TEST123',
],
];
}
}