Skip to content
Permalink
Browse files

Merge pull request #64 from ergebnis/fix/namespace

Fix: Remove useless tests related to setting entity namespace
  • Loading branch information
localheinz committed Mar 16, 2020
2 parents 2850a1a + 397eb80 commit 119136fd00a812bd5c24a8f0c1bbe01ba8388c46
@@ -9,8 +9,8 @@ on: # yamllint disable-line rule:truthy
- "master"

env:
MIN_COVERED_MSI: 95
MIN_MSI: 87
MIN_COVERED_MSI: 93
MIN_MSI: 85
REQUIRED_PHP_EXTENSIONS: "mbstring"

jobs:
@@ -1,5 +1,5 @@
MIN_COVERED_MSI:=95
MIN_MSI:=87
MIN_COVERED_MSI:=93
MIN_MSI:=85

.PHONY: it
it: coding-standards dependency-analysis static-code-analysis doctrine tests ## Runs the coding-standards, dependency-analysis, static-code-analysis, doctrine, and tests targets

This file was deleted.

This file was deleted.

@@ -285,31 +285,6 @@ public function testUnspecifiedFieldsAreLeftNull(): void
self::assertNull($spaceship->getName());
}

public function testEntityIsDefinedToDefaultNamespace(): void
{
$fixtureFactory = new FixtureFactory(self::createEntityManager());

$fixtureFactory->defineEntity(Fixture\FixtureFactory\Entity\Spaceship::class);
$fixtureFactory->defineEntity(Fixture\FixtureFactory\Entity\Person\User::class);

$spaceship = $fixtureFactory->get(Fixture\FixtureFactory\Entity\Spaceship::class);
$user = $fixtureFactory->get(Fixture\FixtureFactory\Entity\Person\User::class);

self::assertInstanceOf(Fixture\FixtureFactory\Entity\Spaceship::class, $spaceship);
self::assertInstanceOf(Fixture\FixtureFactory\Entity\Person\User::class, $user);
}

public function testEntityCanBeDefinedToAnotherNamespace(): void
{
$fixtureFactory = new FixtureFactory(self::createEntityManager());

$fixtureFactory->defineEntity(Fixture\FixtureFactory\Entity\Artist::class);

$artist = $fixtureFactory->get(Fixture\FixtureFactory\Entity\Artist::class);

self::assertInstanceOf(Fixture\FixtureFactory\Entity\Artist::class, $artist);
}

public function testReturnsListOfEntities(): void
{
$fixtureFactory = new FixtureFactory(self::createEntityManager());

0 comments on commit 119136f

Please sign in to comment.
You can’t perform that action at this time.