AwsInspector\Tests\Model\AbstractTest::matchesTagsReturnsTrueIfTagsAndFilterMatches PHP Method

matchesTagsReturnsTrueIfTagsAndFilterMatches() public method

    public function matchesTagsReturnsTrueIfTagsAndFilterMatches()
    {
        $data = ['Tags' => [['Key' => 'testKey', 'Value' => 'testValue'], ['Key' => 'testKey2', 'Value' => 'testValue2']]];
        $stub = $this->getMockForAbstractClass('\\AwsInspector\\Model\\AbstractResource', [$data]);
        $filter = ['testKey' => 'testValue', 'testKey2' => 'testValue2'];
        $this->assertTrue($stub->matchesTags($filter));
    }