/** * @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'); }
/** * @depends testLinks */ public function testMetadataSelf(MetadataContainerAbstract $container) { $this->assertSame($container->getMetadata()->getSelf(), '/v1/brands'); }
/** * @dataProvider dataProviderContainer */ public function testPossuiPropriedadeIndicadoraDeQuantidadeDeRegistros(MetadataContainerAbstract $container, array $expected) { $this->assertSame($container->getMetadata()->getTotalRows(), $expected['totalRows']); }
/** * @depends testLinks */ public function testMetadataSelf(MetadataContainerAbstract $container) { $this->assertSame($container->getMetadata()->getSelf(), '/v1/products/14080/skus'); }