TestClassEstateViewSimilarEstates
extends WP_UnitTestCase
in package
Tags
Table of Contents
- $_expectedTemplateOutput : string
- $_mainRecords : array<string|int, mixed>
- $_pEstateViewSimilarEstates : EstateViewSimilarEstates
- $_resultSubRecords : array<string|int, mixed>
- set_up() : mixed
- testGenerateHtmlOutput() : mixed
- testGetSubEstateIds() : mixed
- testSubEstateCount() : mixed
Properties
$_expectedTemplateOutput
private
string
$_expectedTemplateOutput
= 'Id: 305
laengengrad: 50.3333
breitengrad: 13.777
strasse: Teststreet
plz: 12345
land: Testcountry
--
Id: 309
laengengrad: 50.3273
breitengrad: 13.2222
strasse: Testotherstreet
plz: 12347
land: Testcountry
--
'
$_mainRecords
private
array<string|int, mixed>
$_mainRecords
= [300 => ['Id' => 300, 'laengengrad' => 50.24584, 'breitengrad' => 13.3847, 'strasse' => '', 'plz' => '', 'land' => '', 'vermarktungsart' => 'kauf', 'objektart' => 'haus']]
$_pEstateViewSimilarEstates
private
EstateViewSimilarEstates
$_pEstateViewSimilarEstates
= null
$_resultSubRecords
private
array<string|int, mixed>
$_resultSubRecords
= [305 => ['Id' => 305, 'laengengrad' => 50.3333, 'breitengrad' => 13.777, 'strasse' => 'Teststreet', 'plz' => '12345', 'land' => 'Testcountry'], 309 => ['Id' => 309, 'laengengrad' => 50.3273, 'breitengrad' => 13.2222, 'strasse' => 'Testotherstreet', 'plz' => '12347', 'land' => 'Testcountry']]
Methods
set_up()
public
set_up() : mixed
Return values
mixed —testGenerateHtmlOutput()
public
testGenerateHtmlOutput() : mixed
Return values
mixed —testGetSubEstateIds()
public
testGetSubEstateIds() : mixed
Return values
mixed —testSubEstateCount()
public
testSubEstateCount() : mixed