Skip to content

Commit

Permalink
Merge pull request #125 from demvsystems/add-ambulante-krankenzusatzv…
Browse files Browse the repository at this point in the history
…ersicherung

Add ambulante krankenzusatzversicherung
  • Loading branch information
unre4l authored Sep 18, 2018
2 parents f67f624 + 9a1f4e7 commit 8841a2c
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 4 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
},
"scripts": {
"test": [
"phpunit"
"./vendor/bin/phpunit"
],
"coverage": "phpunit --coverage-clover=coverage.xml",
"coverage-html": "phpunit --coverage-html=coverage"
"coverage": "./vendor/bin/phpunit --coverage-clover=coverage.xml",
"coverage-html": "./vendor/bin/phpunit --coverage-html=coverage"
}
}
2 changes: 2 additions & 0 deletions src/Werte/Bedarf/Thema/Bedarfsthemen.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Demv\Werte\AbstractProvider;
use Demv\Werte\Bedarf\Thema\Themen\Altersvorsorge;
use Demv\Werte\Bedarf\Thema\Themen\AmbulanteKrankenzusatzversicherung;
use Demv\Werte\Bedarf\Thema\Themen\Berufsunfaehigkeit;
use Demv\Werte\Bedarf\Thema\Themen\Hausrat;
use Demv\Werte\Bedarf\Thema\Themen\Kfz;
Expand Down Expand Up @@ -44,6 +45,7 @@ public function __construct()
$this->appendMember(new Rechtsschutz());
$this->appendMember(new Unfallversicherung());
$this->appendMember(new Wohngebaeude());
$this->appendMember(new AmbulanteKrankenzusatzversicherung());
}

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

namespace Demv\Werte\Bedarf\Thema\Themen;

use Demv\Werte\Bedarf\Thema\Bedarfsthema;
use Demv\Werte\Sparte\Sparten\PrivateKrankenzusatzversicherung;

/**
* Class AmbulanteKrankenzusatzversicherung
* @package Demv\Werte\Bedarf\Thema\Themen
*/
final class AmbulanteKrankenzusatzversicherung extends Bedarfsthema
{
const ID = 15;

/**
* AmbulanteKrankenzusatzversicherung constructor.
*/
public function __construct()
{
parent::__construct(
self::ID,
'Ambulante Krankenzusatzversicherung',
[PrivateKrankenzusatzversicherung::AMBULANT],
'Ambulante Kranken&shy;zusatz&shy;versicherung'
);
}
}
8 changes: 7 additions & 1 deletion tests/Werte/Bedarf/Thema/BedarfsthemenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Demv\Werte\Bedarf\Thema\Bedarfsthemen;
use Demv\Werte\Bedarf\Thema\Themen\Altersvorsorge;
use Demv\Werte\Bedarf\Thema\Themen\AmbulanteKrankenzusatzversicherung;
use Demv\Werte\Bedarf\Thema\Themen\Berufsunfaehigkeit;
use Demv\Werte\Bedarf\Thema\Themen\Krankentagegeld;
use Demv\Werte\Bedarf\Thema\Themen\KVZStationaer;
Expand Down Expand Up @@ -32,7 +33,7 @@ private function getBedarfsthemen(): Bedarfsthemen
public function testGetAll(): void
{
$themen = $this->getBedarfsthemen();
$this->assertCount(14, $themen->getAll());
$this->assertCount(15, $themen->getAll());
}

public function testGetBerufsunfaehigkeit(): void
Expand Down Expand Up @@ -69,4 +70,9 @@ public function testGetZahnzusatz(): void
{
$this->checkGetOne($this->getBedarfsthemen(), Zahnzusatz::class);
}

public function testGetAmbulanteKrankenzusatzversicherung(): void
{
$this->checkGetOne($this->getBedarfsthemen(), AmbulanteKrankenzusatzversicherung::class);
}
}

0 comments on commit 8841a2c

Please sign in to comment.