Afform.get - Fix warning/test-failure when trying to load non-existent record
[civicrm-core.git] / ext / afform / bin / test-all.sh
CommitLineData
f6e9a95d
TO
1#!/bin/bash
2
3## Run all afform-related tests
4##
5## Usage: ./bin/test-all.sh
6
7set -e
8EXIT=0
9
10cv en afform afform_mock
11AFF_CORE=$(cv path -x afform)
12AFF_MOCK=$(cv path -x afform_mock)
13
14pushd "$AFF_CORE" >> /dev/null
15 if ! phpunit6 "$@" ; then
16 EXIT=1
17 fi
18popd >> /dev/null
19
20pushd "$AFF_MOCK" >> /dev/null
21 if ! phpunit6 "$@" ; then
22 EXIT=1
23 fi
24popd >> /dev/null
25
26exit "$EXIT"