Completed
Push — master ( 326ddf...4718f5 )
by Ruud
308:22 queued 297:25
created

Tests/unit/Entity/Rule/MaxXTimesRuleTest.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
namespace Kunstmaan\LeadGenerationBundle\Tests\Entity\Rule;
4
5
use Kunstmaan\LeadGenerationBundle\Entity\Rule\MaxXTimesRule;
6
use Kunstmaan\LeadGenerationBundle\Form\Rule\MaxXTimeAdminType;
7
use PHPUnit\Framework\TestCase;
8
9 View Code Duplication
class MaxXTimesRuleTest extends TestCase
10
{
11
    public function testGettersAndSetters()
12
    {
13
        $rule = new MaxXTimesRule();
14
        $rule->setTimes(13);
15
16
        $this->assertEquals(13, $rule->getTimes());
17
        $this->assertEquals('MaxXTimesRule', $rule->getJsObjectClass());
18
        $this->assertEquals('/bundles/kunstmaanleadgeneration/js/rule/MaxXTimesRule.js', $rule->getJsFilePath());
19
        $this->assertEquals(MaxXTimeAdminType::class, $rule->getAdminType());
20
        $this->assertInternalType('array', $rule->getJsProperties());
0 ignored issues
show
Deprecated Code introduced by
The method PHPUnit\Framework\Assert::assertInternalType() has been deprecated with message: https://github.com/sebastianbergmann/phpunit/issues/3369

This method has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.

Loading history...
21
    }
22
}
23