Skip to content

Commit aca2c32

Browse files
committed
feat: silverstripe 5
1 parent 1f0286e commit aca2c32

File tree

6 files changed

+28
-40
lines changed

6 files changed

+28
-40
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
8+
jobs:
9+
ci:
10+
name: CI
11+
uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
.DS_Store
1+
.DS_Store
2+
/vendor/
3+
/public/
4+
/composer.lock
5+
/.phpunit.result.cache

.travis.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
# AddressFinder for Silverstripe
22

33
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/fullscreeninteractive/silverstripe-addressfinder/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/fullscreeninteractive/silverstripe-addressfinder/?branch=master)
4-
[![Build Status](https://travis-ci.org/fullscreeninteractive/silverstripe-addressfinder.svg?branch=master)](https://travis-ci.org/fullscreeninteractive/silverstripe-addressfinder)
54
[![Latest Stable Version](https://poser.pugx.org/fullscreeninteractive/silverstripe-addressfinder/v/stable)](https://packagist.org/packages/fullscreeninteractive/silverstripe-addressfinder)
65

76
## Maintainer Contact
87
* Will Rossiter
98
<will (at) fullscreen (dot) io>
109

11-
## Requirements
12-
* SilverStripe 4.0 or higher
13-
1410
## Overview
1511

1612
This module provides a custom Silverstripe `AddressFinderField` which implements the
@@ -19,7 +15,7 @@ javascript AddressFinder widget ([1](http://addressfinder.co.nz/docs/widget_docs
1915
## Getting Started
2016

2117
```
22-
composer require fullscreeninteractive/silverstripe-addressfinder ^1
18+
composer require fullscreeninteractive/silverstripe-addressfinder
2319
```
2420

2521
* Sign up for an NZ account at [addressfinder.nz/plans/](https://www.addressfinder.nz/plans/), or an Australia plan at [addressfinder.com.au/plans/](https://www.addressfinder.com.au/plans/)
@@ -95,7 +91,7 @@ class AddressObject extends DataObject
9591
}
9692
```
9793

98-
To prefix these fields, call `setFieldPrefix($prefix)` on your `AddressFinderField`
94+
To prefix these fields, call `setFieldPrefix($prefix)` on your `AddressFinderField`
9995
instance.
10096

10197
```php

composer.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
"homepage": "https://www.fullscreen.io"
1212
}],
1313
"require": {
14-
"silverstripe/framework": "^4"
14+
"silverstripe/framework": "^5"
1515
},
1616
"require-dev": {
17-
"phpunit/phpunit": "^5.7"
17+
"phpunit/phpunit": "^9.6"
1818
},
1919
"autoload": {
2020
"psr-4": {
@@ -31,5 +31,11 @@
3131
"lint-clean": "phpcbf src/ tests/"
3232
},
3333
"minimum-stability": "dev",
34-
"prefer-stable": true
34+
"prefer-stable": true,
35+
"config": {
36+
"allow-plugins": {
37+
"composer/installers": true,
38+
"silverstripe/vendor-plugin": true
39+
}
40+
}
3541
}

tests/AddressFinderFieldTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function testSetRequireLatLngManual()
2323

2424
$fieldHolder = $field->FieldHolder();
2525

26-
$this->assertContains('input type="text" name="name[Longitude]"', $fieldHolder);
26+
$this->assertStringContainsString('input type="text" name="name[Longitude]"', $fieldHolder);
2727
}
2828

2929
public function testValidator()

0 commit comments

Comments
 (0)