コード例 #1
0
 /**
  * @depends testLinks
  * @covers \Gpupo\NetshoesSdk\Entity\AbstractMetadata::cutMetadata
  * @covers \Gpupo\NetshoesSdk\Entity\AbstractMetadata::normalizeMetas
  */
 public function testMetadataLast(MetadataContainerAbstract $container)
 {
     $this->assertSame($container->getMetadata()->getLast(), '/v1/products/?page=0&size=20');
 }
コード例 #2
0
 /**
  * @depends testLinks
  */
 public function testMetadataSelf(MetadataContainerAbstract $container)
 {
     $this->assertSame($container->getMetadata()->getSelf(), '/v1/brands');
 }
コード例 #3
0
 /**
  * @dataProvider dataProviderContainer
  */
 public function testPossuiPropriedadeIndicadoraDeQuantidadeDeRegistros(MetadataContainerAbstract $container, array $expected)
 {
     $this->assertSame($container->getMetadata()->getTotalRows(), $expected['totalRows']);
 }
コード例 #4
0
 /**
  * @depends testLinks
  */
 public function testMetadataSelf(MetadataContainerAbstract $container)
 {
     $this->assertSame($container->getMetadata()->getSelf(), '/v1/products/14080/skus');
 }