for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the WPFoundation library.
*
* Copyright (c) 2015-present LIN3S <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace spec\LIN3S\WPFoundation\PostTypes\Fields;
use LIN3S\WordPressPhpSpecBridge\ObjectBehavior;
/**
* Spec of page fields class.
* @author Beñat Espiña <[email protected]>
class PageFieldsSpec extends ObjectBehavior
{
function let()
$this->beAnInstanceOf('fixtures\LIN3S\WPFoundation\PageFields');
}
function it_extends_fields()
$this->shouldHaveType('LIN3S\WPFoundation\PostTypes\Fields\Templates\PageFields');
$this->shouldHaveType('LIN3S\WPFoundation\PostTypes\Fields\Fields');
function it_implements_fields_interface()
$this->shouldHaveType('LIN3S\WPFoundation\PostTypes\Fields\FieldsInterface');
function it_should_be_components()
$this->components()->shouldBeArray();
function it_should_connector()
$this->connector()->shouldReturn([
[
'param' => 'post_type',
'operator' => '==',
'value' => 'page',
],
'param' => 'page_template',
]);
function it_should_be_add_screen_attributes()
$this->addScreenAttributes();
function it_should_be_remove_screen_attributes()
$this->removeScreenAttributes();