Added dependency plugins
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
class WPGraphQLAccessFunctionsTest extends \Codeception\TestCase\WPTestCase {
|
||||
|
||||
public function setUp() {
|
||||
parent::setUp();
|
||||
}
|
||||
|
||||
public function tearDown() {
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests the access function that is available to format strings to GraphQL friendly format
|
||||
*/
|
||||
public function testGraphQLFormatFieldName() {
|
||||
|
||||
$actual = graphql_format_field_name( 'This is some field name' );
|
||||
$expected = 'thisIsSomeFieldName';
|
||||
|
||||
$this->assertEquals( $expected, $actual );
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user