You are here

public function MatchablePathsTest::testMatch in AmazonS3 7.2

@covers Drupal\amazons3\Matchable\MatchablePaths::match

File

tests/Matchable/MatchablePathsTest.php, line 22

Class

MatchablePathsTest

Namespace

Drupal\amazons3Test\Matchable

Code

public function testMatch() {
  $paths = BasicPath::factory(array(
    'foo',
    'bar',
  ));
  $mp = new MatchablePaths($paths);
  $this
    ->assertSame($paths[0], $mp
    ->match('foo'));
  $this
    ->assertSame($paths[1], $mp
    ->match('bar'));
}